Input: Sentence: 'Gated dog park area where some dogs have frisbees'. Count the number of nouns in this sentence.
Output: 5