Input: Sentence: 'two cows in a grass field together behind a fence'. Count the number of nouns in this sentence.
Output: 4