cleanup unit counts table