Input: Sentence: 'A various amount of pastries sit on a table'. Count the number of nouns in this sentence.
Output: 3