Input: Sentence: 'A platform bed has a black pillow on it'. Count the number of nouns in this sentence.
Output: 3