Input: Sentence: 'A chair and a desk in a room'. Count the number of nouns in this sentence.
Output: 3