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

Sentence: 'a laptop a table a mouse some dirt and water'. How many words contain the letter 'u' in the sentence.
1

Sentence: 'living room that has boxes packed for moving'. How many words contain the letter 'u' in the sentence.
0

Sentence: 'a black motorcycle parked on top of a sidewalk'. How many words contain the letter 'c' in the sentence.

2