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

Sentence: 'cows crowd up to a barbed wire fence under a tree'. How many words contain the letter 'n' in the sentence.
2

Sentence: 'a clean kitchen with several cabinets a sink a coffee maker and a vase of flowers'. How many words contain the letter 'p' in the sentence.
0

Sentence: 'a room that features a coffee table a couch and a large window'. How many words contain the letter 't' in the sentence.

3