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

Sentence: 'a rack full of clothes in a small bedroom'. How many words contain the letter 'o' in the sentence.
3

Sentence: 'a picture of some horses and a person in the street'. How many words contain the letter 'r' in the sentence.
4

Sentence: 'a baseball player is preparing to hit the ball while a crowd watches on'. How many words contain the letter 'x' in the sentence.

0