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 dozen glazed doughnuts with different patterns in a box'. How many words end with the letter 'n' in the sentence.
2

Sentence: 'a wild bear walking over some logs in the forest'. How many words end with the letter 'n' in the sentence.
1

Sentence: 'a person is taking an apple from several boxes of apples that are for sale'. How many words end with the letter 'm' in the sentence.

1

