Input: Sentence: 'A herd of sheep looking directly at the camera'. Count the number of nouns in this sentence.
Output: 3