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: '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 group of young boys wearing baseball uniforms holding up a trophy'. How many words end with the letter 'a' in the sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a man is in the ocean riding a wave'. How many words end with the letter 'e' in the sentence.

SOLUTION:
2