Input: Sentence: 'A zebra eats a pile of hay behind another that walks away'. Count the number of nouns in this sentence.
Output: 3