Input: Sentence: 'A hotel room with a nice view of the water'. Count the number of nouns in this sentence.
Output: 4