Input: Sentence: 'San Francisco boardwalk portrays an era that has passed'. Count the number of nouns in this sentence.
Output: 2