Input: Sentence: 'A elephant that is walking in a field'. Count the number of nouns in this sentence.
Output: 2