rebuild counter table