Input: Sentence: 'A giraffe standing next to a tree with blue sky in the background'. Count the number of nouns in this sentence.
Output: 4