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

Sentence: 'a kitchen with a dining room table and a sitting area'. How many words contain the letter 'r' in the sentence.
2

Sentence: 'a couple sitting on seats on a train'. How many words contain the letter 'z' in the sentence.
0

Sentence: 'three people on the beginners slopes taking it slow'. How many words contain the letter 'r' in the sentence.

2