Input: Sentence: 'Two cows stand next to each other in a field'. Count the number of nouns in this sentence.
Output: 2