Input: Sentence: 'A large white polar bear eating a carrot'. Count the number of nouns in this sentence.
Output: 2