Input: Sentence: 'A baseball game in progress with the batter in the middle of the swing'. Count the number of nouns in this sentence.
Output: 6