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

Q: Sentence: 'a clock in the middle of a building'. How many words contain the letter 'x' in the sentence.

A: 0
****
Q: Sentence: 'the train needs to be serviced so it is o the truck'. How many words contain the letter 'n' in the sentence.

A: 2
****
Q: Sentence: 'there is a small dog that is looking threw the glass'. How many words contain the letter 't' in the sentence.

A:
4
****