count lines of class