Update table loop counter