Create counter.cpp