Input: Sentence: 'A young boy swinging a bat at a baseball'. Count the number of nouns in this sentence.
Output: 3