Input: Sentence: 'a black and white fire hydrant and a red building and some people'. Count the number of nouns in this sentence.
Output: 4