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

Q: Sentence: 'a man walking in front of a train station'. How many words contain the letter 'o' in the sentence.

A: 3
****
Q: Sentence: 'a clean kitchen with several cabinets a sink a coffee maker and a vase of flowers'. How many words contain the letter 'p' in the sentence.

A: 0
****
Q: Sentence: 'a man standing in a living room with a fire place and a wall mounted flat screen television'. How many words contain the letter 'r' in the sentence.

A:
3
****