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.

Example Input: Sentence: 'a bird sitting on the branch of a tree near leaves'. How many words end with the letter 'e' in the sentence.
Example Output: 2

Example Input: Sentence: 'a person sitting at a table with a wine glass'. How many words end with the letter 'a' in the sentence.
Example Output: 3

Example Input: Sentence: 'a bathroom with a toilet sink tub towel rack and a window'. How many words end with the letter 'm' in the sentence.
Example Output:
1