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

Sentence: 'a woman working her small shared office cubicle'. How many words contain the letter 'g' in the sentence.
1

Sentence: 'a person in uniform is on a motorcycle near other uniformed people'. How many words contain the letter 'r' in the sentence.
6

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.

6