Input: Sentence: 'A yellow fire hydrant with a blue top is standing in the grass'. Count the number of nouns in this sentence.
Output: 4