thread coding line counter