Input: Sentence: 'A group of teddy bears hanging from strings covered in rain'. Count the number of nouns in this sentence.
Output: 5