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

Ex Input:
Sentence: 'Nighttime lights and traffic along a city street'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A dog sits on a bed next to a cellphone and a pen'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A man on a tennis court holding a racquet'. Count the number of verbs in this sentence.

Ex Output:

1