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 bathroom has exposed parts is dirty and has graffiti'. How many words end with the letter 'd' in the sentence.
2

Sentence: 'five sheep on a hill eating grass overlooking the ocean'. How many words end with the letter 'g' in the sentence.
2

Sentence: 'a person skiing down a snowy mountain side'. How many words end with the letter 'n' in the sentence.

3