Input: Sentence: 'A baseball player holding a bat on top of a baseball field'. Count the number of nouns in this sentence.
Output: 6