Input: Sentence: 'A cow standing in the middle of a field'. Count the number of nouns in this sentence.
Output: 3