Input: Sentence: 'A green fire hydrant with a trash can behind it'. Count the number of nouns in this sentence.
Output: 4