Input: Sentence: 'The street next to the water and buildings are filled with people'. Count the number of nouns in this sentence.
Output: 4