Input: Sentence: 'Several books are stacked on a table'. Count the number of nouns in this sentence.
Output: 2