Ensure counts store is written when rotating the database log [BROKEN]