Input: Sentence: 'Three horsed grazing in a field bordered by tree.s'. Count the number of nouns in this sentence.
Output: 3