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