Input: Sentence: 'A street sign on a post with buildings in the background'. Count the number of nouns in this sentence.
Output: 5