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

Sentence: 'five sheep out in an open field eating straw'. How many words contain the letter 'd' in the sentence.
1

Sentence: 'a man paddle boarding in the middle of the ocean'. How many words contain the letter 'i' in the sentence.
3

Sentence: 'a family walks to their train in a nearly empty cavernous railway station'. How many words contain the letter 'x' in the sentence.

0