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

Sentence: 'a giraffe walking in the grass near a building'. How many words contain the letter 'd' in the sentence.
1

Sentence: 'pieces of food sit on the plate the man is holding'. How many words contain the letter 'o' in the sentence.
4

Sentence: 'an elephant a giraffe and two carousal horses on a carousal'. How many words contain the letter 'y' in the sentence.

0