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

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

Sentence: 'a man in mid swing of a baseball bat'. How many words contain the letter 'k' in the sentence.
0

Sentence: 'a white plate topped with two pieces of toast'. How many words contain the letter 'f' in the sentence.

1