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

Sentence: 'this is a yellow train riding the rails'. How many words contain the letter 'n' in the sentence.
2

Sentence: 'a toilet sits in the middle of a street'. How many words contain the letter 'b' in the sentence.
0

Sentence: 'a group of people boating down a river in a tropical area'. How many words contain the letter 'w' in the sentence.

1