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

Sentence: 'a cat sitting on the arm of a chair'. How many words contain the letter 'g' in the sentence.
1

Sentence: 'a business man is talking on the phone'. How many words contain the letter 'e' in the sentence.
3

Sentence: 'a black and white image of the baseball team'. How many words contain the letter 'w' in the sentence.

1