Input: Sentence: 'A cat sitting on top of a brown leather chair'. Count the number of nouns in this sentence.
Output: 4