Input: Sentence: 'Four surfers are in the ocean with two surfboards'. Count the number of nouns in this sentence.
Output: 3