wrote line counter