Input: Sentence: 'An adult polar bear with two baby bears following on the snow'. Count the number of nouns in this sentence.
Output: 5