Input: Sentence: 'A red open fire hydrant spewing water from it'. Count the number of nouns in this sentence.
Output: 3