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 bed in a room and some food'. How many words end with the letter 'd' in the sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a man blowing out some candles on a cake'. How many words end with the letter 'a' in the sentence.

SOLUTION: 2

PROBLEM: Sentence: 'this is a cat laying upsidedown on a couch'. How many words end with the letter 'a' in the sentence.

SOLUTION:
2