Added a line counter.