Updating the delete function counter