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

Sentence: 'a large truck driving on a crowded street'. How many words contain the letter 'i' in the sentence.
1

Sentence: 'a large brown dog with a white deflated ball in its mouth'. How many words contain the letter 'm' in the sentence.
1

Sentence: 'a man on a motor bike on the street'. How many words contain the letter 'r' in the sentence.

2