numkeys
Syntax: %numkeys(rec)
returns the number of keys in a database record or record variable.
Example:
#SHOW %numkeys("1sa")
#SHOW %numkeys(@RecordVar)