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

Sentence: 'some brown and white goats and a man on some grass'. How many words contain the letter 'o' in the sentence.
5

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

Sentence: 'a furry dog laying on the sidewalk with a straw hat'. How many words contain the letter 'n' in the sentence.

2