private static void countMax() {
        int counter = 0;
        for (int i = 0; i < girlsNum; i++) {
            if (isMagical[i] == 1 && isProtected[i] == 0) {
                counter++;
            }
        }
        if (counter > max) {
            max = counter;
        }
    }