Input: Sentence: 'A teddy bear sits on a small chair'. Count the number of nouns in this sentence.
Output: 3