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: 'the sheep are grazing  in the pasture'. How many words end with the letter 'p' in the sentence.
1

Sentence: 'a cat laying on its back while in a cat bed'. How many words end with the letter 's' in the sentence.
1

Sentence: 'a bench with a wooden design sitting on top'. How many words end with the letter 'g' in the sentence.

1