In this task, you need to count the number of words in a sentence that contain the given letter
Sentence: 'a dog lies on a pillow with its head on a shoe'. How many words contain the letter 'g' in the sentence.