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

Sentence: 'a picture of some horses and a person in the street'. How many words contain the letter 'r' in the sentence.
4

Sentence: 'several ties hang from a bar in a closet'. How many words contain the letter 'e' in the sentence.
3

Sentence: 'a cow with sharp pointy horns chewing cud'. How many words contain the letter 'f' in the sentence.

0