Input: Sentence: 'scissors balanced on a plastic carton balanced on a shelf'. Count the number of nouns in this sentence.
Output: 3