Input: Sentence: 'Several horses and a tent are on the beach'. Count the number of nouns in this sentence.
Output: 3