Input: Sentence: 'A fire hydrant painted yellow on a street curb'. Count the number of nouns in this sentence.
Output: 4