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: 'a black bear eating a carrot on top of rocks'. How many words end with the letter 'r' 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 plate has a stack of pancake and a sausage'. How many words end with the letter 's' in the sentence.


Output: 1