Fix the total count of entries