add some logging on total number of records