Input: Sentence: 'Authority personnel holding back dog while gunman prepares to shoot running black bear'. Count the number of nouns in this sentence.
Output: 5