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

Sentence: 'a pizza sitting on top of a black cutting board'. How many words contain the letter 'g' in the sentence.
2

Sentence: 'a white cat sitting on a couch in a den'. How many words contain the letter 'l' in the sentence.
0

Sentence: 'a man rides a bicycle across the river'. How many words contain the letter 'a' in the sentence.
4