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 in blue shirt laying on sidewalk by a fire hydrant'. How many words end with the letter 'g' in the sentence.
1

Sentence: 'a giraffe some dirt some grass and trees'. How many words end with the letter 's' in the sentence.
2

Sentence: 'a man sitting on his surfboard looking out into the ocean'. How many words end with the letter 'g' in the sentence.

2