Input: Sentence: 'The giraffes wander around inside of the pen'. Count the number of nouns in this sentence.
Output: 2