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

Sentence: 'a picture of some horses and a person in the street'. How many words contain the letter 'r' in the sentence.
4

Sentence: 'a white longheaired dog eating a birthday cake'. How many words contain the letter 'z' in the sentence.
0

Sentence: 'a woman is pouring a green muck from a blender while a man reaches for the microwave'. How many words contain the letter 'g' in the sentence.

2