Input: Sentence: 'A new refrigerator and a new washer and dryer'. Count the number of nouns in this sentence.
Output: 3