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.

Sentence: 'a batter is getting ready to hit the baseball'. How many words end with the letter 'y' in the sentence.
1

Sentence: 'a close up of a cow behind a fence'. How many words end with the letter 'a' in the sentence.
3

Sentence: 'small boy with red shirt and purple hat looking at a brown bear'. How many words end with the letter 'n' in the sentence.

1