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

Example Input: Sentence: 'A bunch of planes flying close with trails of smoke'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A tennis player looks at a tennis ball as she lifts up a tennis racket'. Count the number of nouns in this sentence.
Example Output: 6

Example Input: Sentence: 'A photo take though glass of a polar pear diving under water'. Count the number of verbs in this sentence.
Example Output:
1