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

Sentence: 'a man paddle boarding in the middle of the ocean'. How many words contain the letter 'i' in the sentence.
3

Sentence: 'a teddy bear that is sitting up on the ground'. How many words contain the letter 'm' in the sentence.
0

Sentence: 'the dog is being fed with a banana'. How many words contain the letter 'g' in the sentence.

2