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

Sentence: 'adults with helmets sitting on tricycles made for children'. How many words contain the letter 'r' in the sentence.
3

Sentence: 'a group of kids are participating in a swim class'. How many words contain the letter 'l' in the sentence.
1

Sentence: 'a cat in a tie sits on the couch'. How many words contain the letter 't' in the sentence.

4