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.

Sentence: 'a man getting ready to toast a wine glass'. How many words end with the letter 'g' in the sentence.
1

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

Sentence: 'a dog rides on a motorcycle while a man walks behind'. How many words end with the letter 'a' in the sentence.

3