LineCounter in wxwidgets