In this task, you need to count the number of words in a sentence that contain the given letter

Sentence: 'a stop sign casting a shadow of a sign that says war'. How many words contain the letter 'y' in the sentence.
1

Sentence: 'a herd of giraffe grazing from a feeder'. How many words contain the letter 'h' in the sentence.
1

Sentence: 'two men that are playing a game of tennis'. How many words contain the letter 'n' in the sentence.

3