Part 1. 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.
Part 2. Example
Sentence: 'the street light is green in the city'. How many words end with the letter 't' in the sentence.
Answer: 2
Explanation: The words 'street', and 'light' end with the letter 't'. So, the answer is 2.
Part 3. Exercise
Sentence: 'a united states president barack obama in front of a microphone with an american flag behind him and a sign that says the 2012 state of the union address'. How many words end with the letter 'f' in the sentence.
Answer:
2