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

Sentence: 'three birds perched on top of a wire fence'. How many words contain the letter 'b' in the sentence.
1

Sentence: 'a smiling woman wearing a hat holds up a snowboard'. How many words contain the letter 'b' in the sentence.
1

Sentence: 'three children are sitting on a bench by the beach'. How many words contain the letter 'g' in the sentence.
1