Input: Sentence: 'A person laying in bed across from a window'. Count the number of nouns in this sentence.
Output: 3