Input: Sentence: 'A photographer taking picture with a police nearby'. Count the number of nouns in this sentence.
Output: 3