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.

Example Input: Sentence: 'green bananas and a grapefruit are sitting in front of flowers'. How many words end with the letter 'f' in the sentence.
Example Output: 1

Example Input: Sentence: 'a boys sprays water stream at a passing bicyclist'. How many words end with the letter 's' in the sentence.
Example Output: 2

Example Input: Sentence: 'a red building with a red truck parked next to it'. How many words end with the letter 'd' in the sentence.
Example Output:

Show your work and conclude with the exact phrasing "Therefore, the final answer is [answer]." where [answer] is just the final number or expression that solves the problem.
user
3

