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

Sentence: 'cars parked on the side of the road beside a fire hydrant'. How many words contain the letter 'p' in the sentence.
1

Sentence: 'a child is lighting candles on a cake'. How many words contain the letter 't' in the sentence.
1

Sentence: 'a baseball player swinging his bat while others watch'. How many words contain the letter 'w' in the sentence.

3