Input: Sentence: 'an gray iron direction sign a window and a brick building'. Count the number of nouns in this sentence.
Output: 5