Input: Sentence: 'A man who is holding a small laptop and smiling'. Count the number of nouns in this sentence.
Output: 2