Update To Remove Calls To table.getn()

table.getn() is a depreciated function call... In versions of lua > 5.1, table.getn() is no longer support. The length operator ('#') should be used instead.