Input: Sentence: 'A herd of adult and baby black sheep in a fenced field'. Count the number of nouns in this sentence.
Output: 5