Input: Sentence: 'A fireman messing with a fire hydrant near a curb'. Count the number of nouns in this sentence.
Output: 4