Input: Sentence: 'a surfer walking in an ocean wave carrying a surf board'. Count the number of nouns in this sentence.
Output: 5