Input: Sentence: 'Two school buses travelling on the same street near buildings'. Count the number of nouns in this sentence.
Output: 4