Instructions: In this task, you need to count the number of nouns/verbs in the given sentence.
Input: Sentence: 'A food cart with trays of food on the shelves'. Count the number of nouns in this sentence.
Output:
5