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

Ex Input:
Sentence: 'Different colored plaques displayed some gold, some green'. Count the number of nouns in this sentence.

Ex Output:
2


Ex Input:
Sentence: 'a man is riding a red motorcycle on the street'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'There is an empty bench by some trees and flowers'. Count the number of nouns in this sentence.

Ex Output:

3