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

Sentence: 'a sleek and pointy fighter jet flying in the sky'. How many words contain the letter 'f' in the sentence.
2

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

Sentence: 'a baseball player holds a bat while the catcher stands next to him on a baseball field'. How many words contain the letter 'p' in the sentence.

1