Input: Sentence: 'A bedroom that has a window, bookshelf, and a bed'. Count the number of nouns in this sentence.
Output: 4