Input: Sentence: 'Zebra behind a fence and in front of rocks'. Count the number of nouns in this sentence.
Output: 4