Input: Sentence: 'A man who is getting his hair cut'. Count the number of nouns in this sentence.
Output: 2