add table:length fn to get length of table