Input: Sentence: 'Two differently shaped books with different colors sitting on a table'. Count the number of nouns in this sentence.
Output: 3