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

Example Input: Sentence: 'The display has many towers of stacked cookies next to trays full of cookies'. Count the number of nouns in this sentence.
Example Output: 5

Example Input: Sentence: 'A prom date is posing for a picture while the guy looks at the girl'. Count the number of verbs in this sentence.
Example Output: 2

Example Input: Sentence: 'A giraffe walking through tall brown,dry brush on a sunny day'. Count the number of nouns in this sentence.
Example Output:
3