Add function tableLength; fix typo in love.update

Function tableLength(table) returns number of elements in table.