added line counter member and its getter