Added get total records.