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

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

Sentence: 'a woman standing next to two baby elephants'. How many words contain the letter 'y' in the sentence.
1

Sentence: 'a cat sitting on a carpet next to a pair of sneakers'. How many words contain the letter 'g' in the sentence.

1