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

Example Input: Sentence: 'A series of photographs showing an adorable white dog and lots of yellow fire hydrants'. Count the number of nouns in this sentence.
Example Output: 6

Example Input: Sentence: 'A bed in a bedroom with a heart shaped box on it'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'A fire hydrant lies on its side in the street'. Count the number of nouns in this sentence.
Example Output:
4