Input: Sentence: 'Chopped vegetables of carrots, onions, and potatoes seasoned with salt and pepper'. Count the number of nouns in this sentence.
Output: 6