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

Sentence: 'a young man dressed like a pirate on a skateboard'. How many words contain the letter 'a' in the sentence.
6

Sentence: 'a silver truck a street a person and buildings'. How many words contain the letter 'l' in the sentence.
2

Sentence: 'a man sitting on top of a bat with a dog on front of it'. How many words contain the letter 'd' in the sentence.

1