Input: Sentence: 'A black horse that is tied up eating grass'. Count the number of nouns in this sentence.
Output: 2