Input: Sentence: 'A woman is swinging a wooden stick while a man watches'. Count the number of nouns in this sentence.
Output: 3