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

Sentence: 'two men and two men having drinks at a bar'. How many words contain the letter 'g' in the sentence.
1

Sentence: 'a kitchen in a camp with gear and coats laid out'. How many words contain the letter 'i' in the sentence.
4

Sentence: 'a vase of flowers is against a bamboo wall'. How many words contain the letter 'w' in the sentence.

2