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 pair of tennis players on a tennis court'. How many words contain the letter 'u' in the sentence.
1

Sentence: 'a couple of sheep standing on top of a lush green field'. How many words contain the letter 'p' in the sentence.

3