Input: Sentence: 'A man and his son are getting from a refrigerator'. Count the number of nouns in this sentence.
Output: 3