Input: Sentence: 'A man and women on a bench eating with a dog watching'. Count the number of nouns in this sentence.
Output: 4