linecounter looks good. the method you used on wordcounter can also be applied similarly to this exercise. good job.