Input: Sentence: 'A batter standing behind the catcher is taking a swing'. Count the number of nouns in this sentence.
Output: 3