Input: Sentence: 'A laptop that has been taken apart and displaying all pieces'. Count the number of nouns in this sentence.
Output: 2