Input: Sentence: 'A nicely decorated hotel room with a great view'. Count the number of nouns in this sentence.
Output: 3