Input: Sentence: 'A large funny dog is lounging on his owner's bed'. Count the number of nouns in this sentence.
Output: 3