Input: Sentence: 'A giraffe standing on the grass plans in Africa'. Count the number of nouns in this sentence.
Output: 3