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

Sentence: 'a living room with couches chairs and tables'. How many words contain the letter 'a' in the sentence.
4

Sentence: 'a cat lying on an open laptop that is on a bed'. How many words contain the letter 'y' in the sentence.
1

Sentence: 'guy in a hat talking to people and handing out cds'. How many words contain the letter 'a' in the sentence.

5