Input: Sentence: 'two big black bears are sitting next to a fence'. Count the number of nouns in this sentence.
Output: 2