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

Sentence: 'a man walking with rolling luggage and many bags'. How many words contain the letter 'g' in the sentence.
4

Sentence: 'a bench is in the ocean water with a fishing pole'. How many words contain the letter 'm' in the sentence.
0

Sentence: 'an elephant carrying a log around the enclosure'. How many words contain the letter 'm' in the sentence.
0