counter update only on print line