Input: Sentence: 'a bear smelling something in the middle of a street'. Count the number of nouns in this sentence.
Output: 3