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

Sentence: 'some brown and white goats and a man on some grass'. How many words contain the letter 'o' in the sentence.
5

Sentence: 'a dog jumping up and catching a frisbee in its mouth'. How many words contain the letter 'r' in the sentence.
1

Sentence: 'a cat watching birds on a television screen'. How many words contain the letter 'j' in the sentence.

0