Input: Sentence: 'I plate of food with some vegetables and a bagel on it'. Count the number of nouns in this sentence.
Output: 3