Input: Sentence: 'A restored Woodie brings back old beach memories'. Count the number of nouns in this sentence.
Output: 2