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