Input: Sentence: 'A herd of cattle grazing on a dry grass field'. Count the number of nouns in this sentence.
Output: 4