Adding linecount feature