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.

[EX Q]: Sentence: 'a row of boats parked next to a shore on a lake'. How many words end with the letter 't' in the sentence.
[EX A]: 1

[EX Q]: Sentence: 'a motorcycle parked up against a building with graffiti on it'. How many words end with the letter 't' in the sentence.
[EX A]: 2

[EX Q]: Sentence: 'a small dog sitting next to a small tree'. How many words end with the letter 'g' in the sentence.
[EX A]:
2