Input: Sentence: 'A person holding their surfboard while waves approach the shore'. Count the number of nouns in this sentence.
Output: 4