Input: Sentence: 'A zebra grazing on grass next to a stone wall'. Count the number of nouns in this sentence.
Output: 5