numkeys
Syntax:
%numkeys(rec)
returns the number of keys in a database record