Solutions
LM-C06-C-001
The sequence is a b a c a. The token a appears at positions 1, 3, and 5,
so the count is 3.
LM-C06-C-002
I like appears once in I like tea and once in I like code, so the count
is 2.
LM-C06-C-003
P(tea | like) = 3 / 6. Multiplying by 6 gives 3.
LM-C06-C-004
A 4-gram contains four tokens total: three context tokens and one predicted token.
LM-C06-C-005
A context that appears 0 times has no observed continuation counts in a plain count table.