Input: Sentence: 'A plate of food and glass on a table'. Count the number of nouns in this sentence.
Output: 4