Input: Sentence: 'A baseball player prepares to catch a ball'. Count the number of nouns in this sentence.
Output: 3