Input: Sentence: 'A bed sitting inside of a bedroom next to a window'. Count the number of nouns in this sentence.
Output: 3