batch count and delete