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

Ex Input:
Sentence: 'A black horse that is tied up eating grass'. Count the number of nouns in this sentence.

Ex Output:
2

Ex Input:
Sentence: 'A giraffe standing next to a stone wall'. Count the number of nouns in this sentence.

Ex Output:
3

Ex Input:
Sentence: 'A woman in a suit and tie is on top of a brown horse that is sweating'. Count the number of nouns in this sentence.

Ex Output:
5