Input: Sentence: 'A baseball player catches the ball as an opponent makes it on base'. Count the number of nouns in this sentence.
Output: 5