public Count (String input) {
      a = 0; b = 0; c = 0; total = 0;
      for (int x = 0; x < input.length(); x++) {
        switch (input.charAt(x)) {
          case 'a': a++; total = total * 3; break;
          case 'b': b++; total = total * 3 + 1; break;
          case 'c': c++; total = total * 3 + 2; break;
          default: break;
        }
      }
    }