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

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

A: 1
****
Q: Sentence: 'a toilet and long handled plunger in a cleaned bathroom'. How many words contain the letter 'i' in the sentence.

A: 2
****
Q: Sentence: 'a clock tower next to a building in a city'. How many words contain the letter 'a' in the sentence.

A:
3
****