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

Example Input: Sentence: 'A lone giraffe standing nears the trees on a sunny day'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'A small boat that is pulling a larger boat'. Count the number of nouns in this sentence.
Example Output: 2

Example Input: Sentence: 'A locomotive pulls a string of railcars down a railroad track at the foot of tree covered hills'. Count the number of verbs in this sentence.
Example Output:
2