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 picture of a old orange and blue tugboat in the ocean'. How many words end with the letter 'n' in the sentence.
2

Sentence: 'a black cat sitting on the rim of a toilet'. How many words end with the letter 'a' in the sentence.

2