Input: Sentence: 'Attractive man smiling standing next to a barrel'. Count the number of nouns in this sentence.
Output: 2