Input: Sentence: 'An elaborate bedroom and office is seen in a photo'. Count the number of nouns in this sentence.
Output: 3