Input: Sentence: 'A long haired cat lies on top of an open laptop and keyboard'. Count the number of nouns in this sentence.
Output: 4