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

Example Input: Sentence: 'Man poses for picture with his dog while sitting on a bench'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A variety of shots of a man doing skateboarding tricks'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'A line up of large passenger jets taking off from an airport runway'. Count the number of nouns in this sentence.
Example Output:
5