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

Q: Sentence: 'a man wearing a striped tie and a hat'. How many words contain the letter 'h' in the sentence.

A: 1
****
Q: Sentence: 'the boy is in batting stance to waiting'. How many words contain the letter 'h' in the sentence.

A: 1
****
Q: 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.

A:
3
****