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 toilet next to a stand up shower with toilet paper near by'. How many words end with the letter 'p' in the sentence.
[A]: 1


[Q]: Sentence: 'a white longheaired dog eating a birthday cake'. How many words end with the letter 'g' in the sentence.
[A]: 2


[Q]: Sentence: 'a man standing on a surf board while riding an ocean wave'. How many words end with the letter 'g' in the sentence.
[A]:
2