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