defined iterationcount in char.c++ so that the for loop is always well-defined