Input: Sentence: 'Woman laying on a floor with a dog and a cat watching her'. Count the number of nouns in this sentence.
Output: 4