Input: Sentence: 'a green bus is sitting by a curb'. Count the number of nouns in this sentence.
Output: 2