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

Sentence: 'a little girl sitting on the floor reading a book'. How many words contain the letter 'n' in the sentence.
3

Sentence: 'horses standing and laying down in the grass on a hill above a lake'. How many words contain the letter 'g' in the sentence.
3

Sentence: 'a room with several beds a chair and a lamp'. How many words contain the letter 'c' in the sentence.

1