Adds writing counts to disk.