Input: Sentence: 'The soccer player is running beside a referee'. Count the number of nouns in this sentence.
Output: 3