Input: Sentence: 'A bed in a hotel room sitting next to a window'. Count the number of nouns in this sentence.
Output: 4