Input: Sentence: 'The display has many towers of stacked cookies next to trays full of cookies'. Count the number of nouns in this sentence.
Output: 5