Input: Sentence: 'A lady sitting on a bench with her laptop on her lap and a bag'. Count the number of nouns in this sentence.
Output: 5