Input: Sentence: 'A living room with a black cat on top of a hard wood floor'. Count the number of nouns in this sentence.
Output: 6