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

Q: Sentence: 'a rack full of clothes in a small bedroom'. How many words contain the letter 'o' in the sentence.

A: 3
****
Q: Sentence: 'a person resting on a bench outside a furniture store'. How many words contain the letter 'e' in the sentence.

A: 6
****
Q: Sentence: 'a baseball player swings his bat at a pitch'. How many words contain the letter 'g' in the sentence.

A:
1
****