Input: Sentence: 'The giraffe is looking onto the green field'. Count the number of nouns in this sentence.
Output: 2