Input: Sentence: 'A mother and baby in bed with a fireplace in the room'. Count the number of nouns in this sentence.
Output: 5