countlines ignored strlen, which led to glitches