Input: Sentence: 'Two men are in a cart going down the beach'. Count the number of nouns in this sentence.
Output: 3