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.

Input: Consider Input: Sentence: 'candles in the shape of letters are lit on top of a cake'. How many words end with the letter 'a' in the sentence.

Output: 1


Input: Consider Input: Sentence: 'several jockeys ride their horses in a horse race'. How many words end with the letter 'r' in the sentence.

Output: 1


Input: Consider Input: Sentence: 'a man standing watching a projection on the wall'. How many words end with the letter 'g' in the sentence.


Output: 2