Correction

CC adds table.getn, which is the same as table.maxn. No need to create any functions.
Merge pull request #4 from Symmetryc/patch-1

Correction