Input: Sentence: 'A woman playing with a cat while lying on the floor'. Count the number of nouns in this sentence.
Output: 3