Input: Sentence: 'A room has no furniture but one bed'. Count the number of nouns in this sentence.
Output: 3