Input: Sentence: 'A girl is laying in an adjustable bed'. Count the number of nouns in this sentence.
Output: 2