Input: Sentence: 'Two men and a dog sitting on park bench with frisbees'. Count the number of nouns in this sentence.
Output: 5