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

Sentence: 'this is a yellow train riding the rails'. How many words contain the letter 'n' in the sentence.
2

Sentence: 'zebra walking through some desolate savanna alone during the day'. How many words contain the letter 'e' in the sentence.
5

Sentence: 'a baseball player swings for a hit on the field as several of his team mates watch him'. How many words contain the letter 'm' in the sentence.
3