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

Sentence: 'a teddy bear laying on a pillow on a bed'. How many words contain the letter 'w' in the sentence.
1

Sentence: 'a view from a plane window near a large snowy peak'. How many words contain the letter 'u' in the sentence.
0

Sentence: 'an old fasioned locomotive arriving at a train station'. How many words contain the letter 'd' in the sentence.

2