Fix the COUNT part of the deletion process.