Input: Sentence: 'Industrial ovens are stacked on top of each other'. Count the number of nouns in this sentence.
Output: 2