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: 'cakes sitting on cardboard on display on a shelf'. How many words end with the letter 'n' in the sentence.
3

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

Sentence: 'a man with a dog sitting in his backpack talking to a woman in sunglasses'. How many words end with the letter 'a' in the sentence.

3