Input: Sentence: 'A rusty old fire hydrant sitting on a sidewalk'. Count the number of nouns in this sentence.
Output: 3