Input: Sentence: 'A batter swinging at a baseball at a game'. Count the number of nouns in this sentence.
Output: 2