Input: Sentence: 'A laptop cake sits on a wooden table by a window'. Count the number of nouns in this sentence.
Output: 4