added numkeys functionality
added keysLength mediate var in case undefined error
fixed doubled numkeys args, and kept intermediate keysLength var to cover empty keys argument pass case
Merge pull request #1 from kulicuu/master

added numkeys functionality