Input: Sentence: 'A large cat sitting on top of a table'. Count the number of nouns in this sentence.
Output: 3