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

Sentence: 'a man with a hat on sitting in a car with the door open and a laptop on his lap'. How many words contain the letter 'e' in the sentence.
2

Sentence: 'a kitchen in a camp with gear and coats laid out'. How many words contain the letter 'i' in the sentence.
4

Sentence: 'a man holding up a half eaten doughnut up to his eye'. How many words contain the letter 'y' in the sentence.

1