Input: Sentence: 'A food cart with trays of food on the shelves'. Count the number of nouns in this sentence.
Output: 5