Input: Sentence: 'A black knife that has been set next to a keyboard'. Count the number of nouns in this sentence.
Output: 2