Input: Sentence: 'Two giraffes and a zebra in grassy area next to trees'. Count the number of nouns in this sentence.
Output: 4