Input: Sentence: 'A young man carries a backpack and surfboard'. Count the number of nouns in this sentence.
Output: 3