update record count on data retrieve