Input: Sentence: 'There are two giraffes under the large tree'. Count the number of nouns in this sentence.
Output: 2