update record count on insert