remove all old counter docs before writing new one.