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

Sentence: 'group of horses in a field with a pinto in the foreground'. How many words contain the letter 'h' in the sentence.
3

Sentence: 'a cat sitting on a wooden chair look at the camera'. How many words contain the letter 'd' in the sentence.
1

Sentence: 'parking meters for motorcycles only on a city street'. How many words contain the letter 'h' in the sentence.

0