Input: Sentence: 'A room that has a couch surrounded by two shelving units'. Count the number of nouns in this sentence.
Output: 3