a simple GUI code line counter