speed up line counter