Input: Sentence: 'a fire hydrant in front of a building'. Count the number of nouns in this sentence.
Output: 4