Input: Sentence: 'Two teddy bears posed for a picture together'. Count the number of nouns in this sentence.
Output: 3