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

Q: Sentence: 'a lighthouse with birds flying by it at a bay'. How many words contain the letter 'q' in the sentence.

A: 0
****
Q: Sentence: 'a cellphone mounted to a dashboard of a car'. How many words contain the letter 'p' in the sentence.

A: 1
****
Q: Sentence: 'a close up of a plate with food next to a wine glass'. How many words contain the letter 'd' in the sentence.

A:
1
****