Input: Sentence: 'A teddy bear sitting in a chair with an open book on its lap'. Count the number of nouns in this sentence.
Output: 5