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

Sentence: 'some zebras dirt plants and bushes'. How many words contain the letter 'r' in the sentence.
2

Sentence: 'there are some warning signs on a public toilet'. How many words contain the letter 'a' in the sentence.
3

Sentence: 'a panthers football player holding a baseball bat and basketball'. How many words contain the letter 'y' in the sentence.

1