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

Sentence: 'pieces of food sit on the plate the man is holding'. How many words contain the letter 'o' in the sentence.
4

Sentence: 'a large pizza smothered in cheese and sauce'. How many words contain the letter 'a' in the sentence.
5

Sentence: 'a man walking across a beach carrying a surfboard'. How many words contain the letter 'i' in the sentence.

2