Input: Sentence: 'Two men in white coats are standing next to a cow'. Count the number of nouns in this sentence.
Output: 3