Input: Sentence: 'A man is holding his hands over a barrel'. Count the number of nouns in this sentence.
Output: 3