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

Sentence: 'a plate has many different types of food on it'. How many words contain the letter 'r' in the sentence.
1

Sentence: 'people standing in a river surrounding an elephant some are touching it'. How many words contain the letter 'd' in the sentence.
2

Sentence: 'a boy in black shirt jumping a skateboard over a ramp'. How many words contain the letter 'g' in the sentence.

1