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

Sentence: 'a group of people cooking pancakes in the field'. How many words contain the letter 'g' in the sentence.
2

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

Sentence: 'this is a group of five cats resting on a bed'. How many words contain the letter 'u' in the sentence.

1