Input: Sentence: 'A man carries a yellow surfboard along a populated beach'. Count the number of nouns in this sentence.
Output: 3