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 man is in deep conversation holding his phone'. How many words end with the letter 's' in the sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a man getting ready to toast a wine glass'. How many words end with the letter 'g' in the sentence.

SOLUTION: 1

PROBLEM: Sentence: 'man flying kite at beach on bright sunny day'. How many words end with the letter 'g' in the sentence.

SOLUTION:
1