Input: Sentence: 'A cat sitting on top of a table next to a laptop'. Count the number of nouns in this sentence.
Output: 4