Input: Sentence: 'A teddy bear sitting on top of a metal bench'. Count the number of nouns in this sentence.
Output: 5