Input: Sentence: 'a counter that has silverware and glasses on top of it'. Count the number of nouns in this sentence.
Output: 4