Input: Sentence: 'There is a man walking towards the waves'. Count the number of nouns in this sentence.
Output: 2