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

Q: Sentence: 'an old motorcycle with the seat missing parked in a garage with other parts and motorcycles'. How many words contain the letter 'r' in the sentence.

A: 6
****
Q: Sentence: 'a soldier holds something for a young bear'. How many words contain the letter 'a' in the sentence.

A: 3
****
Q: Sentence: 'a cat lounges on the seat of a red chair'. How many words contain the letter 'g' in the sentence.

A:
1
****