code: private final int m() {
          int n = 0;
          int i = 0;
          while (true) {
              if (i > j) {
                  return n;
              }
              if (!isConsonant(i)) {
                  break;
              }
              i++;
          }
          i++;
          while (true) {
              while (true) {
                  if (i > j) {
                      return n;
                  }
                  if (isConsonant(i)) {
                      break;
                  }
                  i++;
              }
              i++;
              n++;
              while (true) {
                  if (i > j) {
                      return n;
                  }
                  if (!isConsonant(i)) {
                      break;
                  }
                  i++;
              }
              i++;
          }
      }
docs: m() measures the number of consonant sequences between 0 and j. if c is
  a consonant sequence and v a vowel sequence, and <..> indicates arbitrary
  presence,
  <ul>
  <li> <c><v>       gives 0
  <li> <c>vc<v>     gives 1
  <li> <c>vcvc<v>   gives 2
  <li> <c>vcvcvc<v> gives 3
  <li> ....
  </ul>