Input: Sentence: 'a giraffe is standing next to a green truck'. Count the number of nouns in this sentence.
Output: 2