Input: Sentence: 'a white horse is gazing across the field'. Count the number of nouns in this sentence.
Output: 2