Input: Sentence: 'A piece of cake with a drink and cake in a glass'. Count the number of nouns in this sentence.
Output: 5