Input: Sentence: 'A photo of young children playing base ball turned the wrong way'. Count the number of nouns in this sentence.
Output: 5