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.

[Q]: Sentence: 'a yellow train traveling towards a train station'. How many words end with the letter 'a' in the sentence.
[A]: 2


[Q]: Sentence: 'a bathroom has exposed parts is dirty and has graffiti'. How many words end with the letter 'd' in the sentence.
[A]: 2


[Q]: Sentence: 'a man sitting on top of a bench while holding a blue umbrella'. How many words end with the letter 'p' in the sentence.
[A]:
1