Input: Sentence: 'A large cat is laying belly up on the bed'. Count the number of nouns in this sentence.
Output: 3