TASK DEFINITION: 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.
PROBLEM: Sentence: 'a group of people are walking in the city with umbrellas'. How many words end with the letter 'h' in the sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a bakery with a display tray of cupcakes decorated and labeled'. How many words end with the letter 'y' in the sentence.

SOLUTION: 3

PROBLEM: Sentence: 'an empty motorcycle sits on the side of a forest road with the helmet resting on the motorcycle'. How many words end with the letter 'n' in the sentence.

SOLUTION:
3