Input: Sentence: 'Several people walking on a beach with surfboards'. Count the number of nouns in this sentence.
Output: 3