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

Sentence: 'a clock tower next to a building in a city'. How many words contain the letter 'a' in the sentence.
3

Sentence: 'several ties hang from a bar in a closet'. How many words contain the letter 'e' in the sentence.
3

Sentence: 'the blue and white trolley is waiting on passengers'. How many words contain the letter 'e' in the sentence.

5