Input: Sentence: 'a living room with some brick walls and a fireplace'. Count the number of nouns in this sentence.
Output: 5