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

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 blue and white fire hydrant and two cars parked across the street'. How many words contain the letter 'y' in the sentence.
1

Sentence: 'black and white cat scratching itself while looking at a hubcap'. How many words contain the letter 'j' in the sentence.

0