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

Sentence: 'the children are playing on the beach  next to the water'. How many words contain the letter 'h' in the sentence.
5

Sentence: 'a man wearing a striped tie and a hat'. How many words contain the letter 'h' in the sentence.
1

Sentence: 'a person is sitting on the bench next to the water'. How many words contain the letter 'f' in the sentence.

0