Input: Sentence: 'A giraffe eating off the top of a sand pile'. Count the number of nouns in this sentence.
Output: 4