Input: Sentence: 'A large black bear is sleeping on a rock'. Count the number of nouns in this sentence.
Output: 2