Wrote a line counter.