In this task, you need to count the number of nouns/verbs in the given sentence.

Sentence: 'A laptop cake sits on a wooden table by a window'. Count the number of nouns in this sentence.
4

Sentence: 'Two girls with painted faces sit on the sidewalk'. Count the number of nouns in this sentence.
3

Sentence: 'Man walking on a sidewalk that is sloping downhill approaching the corner'. Count the number of verbs in this sentence.

3