carriage return should be at front-of-line so count survives errors