Fixed global count of records