Input: Sentence: 'a young giraffe standing by large brown rocks near a grassy area'. Count the number of nouns in this sentence.
Output: 3