function msinsert(tbl, value) tbl[value] = tbl[value] and tbl[value]+1 or 1 end