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

Ex Input:
Sentence: 'A red train engine coming into a station'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'A woman wearing glasses with a cat on her neck'. Count the number of verbs in this sentence.

Ex Output:
1


Ex Input:
Sentence: 'Several cows grazing in a fenced in area'. Count the number of nouns in this sentence.

Ex Output:

2