Input: Sentence: 'A fire hydrant near a small, old barn'. Count the number of nouns in this sentence.
Output: 3