Input: Sentence: 'A pitcher in action on the baseball field'. Count the number of nouns in this sentence.
Output: 4