word count C & CPP fclose() update