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

Sentence: 'a large brown dog with a white deflated ball in its mouth'. How many words contain the letter 'm' in the sentence.
1

Sentence: 'the beach has six open umbrellas on poles'. How many words contain the letter 'g' in the sentence.
0

Sentence: 'a girl in a red dress working on a laptop'. How many words contain the letter 'o' in the sentence.
3