Input: Sentence: 'a white truck with a green crane on it'. Count the number of nouns in this sentence.
Output: 2