int countChars(char *array[], int len) { int total = 0, count = 0; for (int i = 0; i < len; i++) { if (array[i] != NULL) { while (*array[i] != '\0') { count++; } count++; } total += count; } return total; }