Input: Sentence: 'A surfer carrying his surf board over his head on the beach'. Count the number of nouns in this sentence.
Output: 5