char count error on full stop before EOF