Input: Sentence: 'A view of a laptop being held by someone laying in bed'. Count the number of nouns in this sentence.
Output: 3