Input: Sentence: 'A girl lying on a bed looking at the camera'. Count the number of nouns in this sentence.
Output: 3