add counter to table record