Input: Sentence: 'The pasta dish has several vegetables mixed in it'. Count the number of nouns in this sentence.
Output: 3