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.
--------
Question: Sentence: 'a large herd of elephant wading in a dirty river'. How many words end with the letter 'r' in the sentence.

Answer: 1


Question: Sentence: 'a man is eating a number of sandwiches next to a bottle of water'. How many words end with the letter 'a' in the sentence.

Answer: 3


Question: Sentence: 'a bed a lamp on a night stand and a window'. How many words end with the letter 'a' in the sentence.

Answer:
4