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

Input: Consider Input: Sentence: 'An architectural clock in a historical building in Prague'. Count the number of nouns in this sentence.

Output: 2

Input: Consider Input: Sentence: 'A collection of headshots dot the picture frame'. Count the number of nouns in this sentence.

Output: 4

Input: Consider Input: Sentence: 'Two giraffes and a zebra in grassy area next to trees'. Count the number of nouns in this sentence.
Output: 4