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.
--------
Question: Sentence: 'a herd of elephants grazing near a body of water'. How many words end with the letter 'y' in the sentence.

Answer: 1


Question: Sentence: 'people are riding horses through a parking lot'. How many words end with the letter 'g' in the sentence.

Answer: 2


Question: Sentence: 'a person sitting on a beach on a lawn chair under an umbrella'. How many words end with the letter 'r' in the sentence.

Answer:
2