The expired and sold ads continue to be counted for some time. You just have to wait until the software stops counting them and then you can list again.