Input: Sentence: 'Two men and two women on a sofa with laptop computers'. Count the number of nouns in this sentence.
Output: 5