A very basic C++ line counter