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

Example Input: Sentence: 'A man riding on the back of an elephant near a lake'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A building hiding beyond a stop sign and street sign'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'A metal pat with a slice of pizza on top of it'. Count the number of nouns in this sentence.
Example Output:
5