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

Sentence: 'the view of a pier throw rain covered window'. How many words contain the letter 'p' in the sentence.
1

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

Sentence: 'a small room with a cot and clothes on it'. How many words contain the letter 'q' in the sentence.

0