Input: Sentence: 'A hitter on the baseball field about to swing'. Count the number of nouns in this sentence.
Output: 3