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 brown bear swimming in water next to tree trunk'. How many words end with the letter 'g' in the sentence.

A: 1
****
Q: Sentence: 'a man and woman happily hug near a river'. How many words end with the letter 'y' in the sentence.

A: 1
****
Q: Sentence: 'an impressive collection of stuffed animals sprawls behind glass'. How many words end with the letter 'd' in the sentence.

A:
2
****