Input: Sentence: 'The three members of the family are all on their laptops'. Count the number of nouns in this sentence.
Output: 3