Input: Sentence: 'A man sitting on a couch on his laptop'. Count the number of nouns in this sentence.
Output: 3