Input: Sentence: 'A person smiles behind a large teddy bear next to a basket of smaller bears'. Count the number of nouns in this sentence.
Output: 5