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

Sentence: 'two giraffe a mom and baby both with their heads up'. How many words contain the letter 'w' in the sentence.
2

Sentence: 'an elephant that is eating some leaves from a tree'. How many words contain the letter 'n' in the sentence.
3

Sentence: 'a painting of a shell and table with a clock'. How many words contain the letter 'y' in the sentence.

0