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

Sentence: 'bus parked next to a side walk on the road'. How many words contain the letter 'd' in the sentence.
3

Sentence: 'there are some warning signs on a public toilet'. How many words contain the letter 'a' in the sentence.
3

Sentence: 'a baseball player tries to hit a ball while two others waits to catch it and the crowd looks on'. How many words contain the letter 'x' in the sentence.

0