added line counter