A line counter in wxwidgets