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