Input: Sentence: 'Two buses are going in opposite directions on a city street'. Count the number of nouns in this sentence.
Output: 4