Input: Sentence: 'A toilet in a small room with a window and unfinished walls'. Count the number of nouns in this sentence.
Output: 4