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 messy bed sitting under a lit up ceiling fan'. How many words end with the letter 'n' in the sentence.
Example Output: 1

Example Input: Sentence: 'black and white photograph with man in black tie and jacket'. How many words end with the letter 'k' in the sentence.
Example Output: 2

Example Input: Sentence: 'yellow and white locomotive pulling train cars on tracks'. How many words end with the letter 'n' in the sentence.
Example Output:
2