You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you need to count the number of words in a sentence that end with the given letter. Answer with numbers and not words.

Sentence: 'the street light is green in the city'. How many words end with the letter 't' in the sentence.
Solution: 2
Why? The words 'street', and 'light' end with the letter 't'. So, the answer is 2.

New input: Sentence: 'a little boy sitting in a chair holding a doughnut'. How many words end with the letter 'a' in the sentence.
Solution:
3
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you need to count the number of words in a sentence that end with the given letter. Answer with numbers and not words.

Sentence: 'the street light is green in the city'. How many words end with the letter 't' in the sentence.
Solution: 2
Why? The words 'street', and 'light' end with the letter 't'. So, the answer is 2.

New input: Sentence: 'a little boy sitting in a chair holding a doughnut'. How many words end with the letter 'a' in the sentence.
Solution:
user
3
assistant
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you need to count the number of words in a sentence that end with the given letter. Answer with numbers and not words.

Sentence: 'the street light is green in the city'. How many words end with the letter 't' in the sentence.
Solution: 2
Why? The words 'street', and 'light' end with the letter 't'. So, the answer is 2.

New input: Sentence: 'a little boy sitting in a chair holding a doughnut'. How many words end with the letter 'a' in the sentence.
Solution:
3