public int[] howMany(String answers) {

        charIntMapping.put('A', 0);
        charIntMapping.put('B', 1);
        charIntMapping.put('C', 2);

        for (int i = 0; i < answers.length(); i++) {
            countABC[charIntMapping.get(answers.charAt(i))]++;
        }


        for (int i : countABC)
            if (i > 0)
                totalCharacters++;

        if (totalCharacters == 1) {
            for (int i = 0; i < answers.length(); i++)
                result.add(1);
            return listToInt(result);
        }

        else if (totalCharacters == 0) {
            return new int[]{};
        }

        else {

            for (int i = 0; i < answers.length(); i++)
                count(answers, i);
        }


        return listToInt(result);
    }