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 cactus in a pot next to a black fence'. How many words end with the letter 'a' in the sentence.
3

Sentence: 'a plate has a spoon cup of coffee and two small doughnuts'. How many words end with the letter 'a' in the sentence.
2

Sentence: 'a crowd of people occupy a busy city street'. How many words end with the letter 'y' in the sentence.

3