a C++ line counter