Create counter.c

core file