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 train on the tracks under a bridge'. How many words end with the letter 'e' in the sentence.

SOLUTION: 2

PROBLEM: Sentence: 'five sheep on a hill eating grass overlooking the ocean'. How many words end with the letter 'g' in the sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a couple of people standing on top of a beach near the ocean'. How many words end with the letter 'f' in the sentence.

SOLUTION:
2