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

Ex Input:
Sentence: 'A train on a track in the middle of a neighborhood'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'a sub sandwich wrapped in some paper and cut in half'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A tall  giraffe standing alone in a forest'. Count the number of nouns in this sentence.

Ex Output:

2