Input: Sentence: 'A man holding a dog with a neon green frisbee'. Count the number of nouns in this sentence.
Output: 4