Input: Sentence: 'Group of people carrying surfboards next to the beach'. Count the number of nouns in this sentence.
Output: 3