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

Sentence: 'a train that is pulling into the station'. How many words contain the letter 't' in the sentence.
5

Sentence: 'a man rides a black motorcycle around a curve'. How many words contain the letter 'y' in the sentence.
1

Sentence: 'a horse and a donkey stand in a fenced field'. How many words contain the letter 'd' in the sentence.

5