Input: Sentence: 'A grandfather clock next to wall with windows and paintings'. Count the number of nouns in this sentence.
Output: 4