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

Sentence: 'a man in a helmet leans on his motorcycle'. How many words contain the letter 'n' in the sentence.
4

Sentence: 'a group of people on a beach beneath a cloudy sky'. How many words contain the letter 'g' in the sentence.
1

Sentence: 'a man riding a bike with no shirt on carrying a surfboard down to the ocean'. How many words contain the letter 'f' in the sentence.

1