Line counter implemented