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

Example Input: Sentence: 'A young man on a skateboard with hand protectors'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A boat flies its flag while sailing just off a pier'. Count the number of verbs in this sentence.
Example Output: 2

Example Input: Sentence: 'A pair of snowmen stand in front of two people holding skis'. Count the number of nouns in this sentence.
Example Output:
5