Input: Sentence: 'A baseball player is getting ready to hit a ball'. Count the number of nouns in this sentence.
Output: 3