Write account count on finish.