Input: Sentence: 'A fire hydrant lies on its side in the street'. Count the number of nouns in this sentence.
Output: 4