Input: Sentence: 'Two roosters walking next to a fence, near a fire hydrant'. Count the number of nouns in this sentence.
Output: 4