Note: This is a private function.
Calculate the number of numerical elements in obj
Syntax
l = objlen(obj)