Input: Sentence: 'A player is swinging the bat at a ball in a baseball game'. Count the number of nouns in this sentence.
Output: 5