Input: Sentence: 'A picture of a living room with a stone fireplace'. Count the number of nouns in this sentence.
Output: 5