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

Example Input: Sentence: 'Painting of a large elephant walking through an open field by itself'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A spray paint covered fire hydrant on a side walk'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'A bathroom has decorative tile on the floor and is clean'. Count the number of nouns in this sentence.
Example Output:
3