Input: Sentence: 'A yellow fire hydrant sitting at the top of a green hill'. Count the number of nouns in this sentence.
Output: 4