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

Example Input: Sentence: 'A person holding a bottle while riding a skateboard'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'View of a kitchen with man and dog inside of it'. Count the number of verbs in this sentence.
Example Output: 0

Example Input: Sentence: 'A silver BMW motorcycle being posed for a picture'. Count the number of nouns in this sentence.
Example Output:
2