Input: Sentence: 'A laptop computer is on a table next to a window'. Count the number of nouns in this sentence.
Output: 4