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

Sentence: 'a laptop a table a mouse some dirt and water'. How many words contain the letter 'u' in the sentence.
1

Sentence: 'an elephant that is eating some leaves from a tree'. How many words contain the letter 'n' in the sentence.
3

Sentence: 'a black trains engine pulling its yellow train cars'. How many words contain the letter 'b' in the sentence.

1