Input: Sentence: 'A cake with chocolate frosting and a cake with white frosting are each in an open box'. Count the number of nouns in this sentence.
Output: 6