Input: Sentence: 'A puzzle photo of man swinging a baseball bat'. Count the number of nouns in this sentence.
Output: 5