Input: Sentence: 'a man walking out into the ocean wearing a wetsuit and carrying a surfboard'. Count the number of nouns in this sentence.
Output: 4