Lines counter program