code: private static int countTailoredNodes(long[] nodesArray, int i, int strength) {
          int count = 0;
          for(;;) {
              if(i == 0) { break; }
              long node = nodesArray[i];
              if(strengthFromNode(node) < strength) { break; }
              if(strengthFromNode(node) == strength) {
                  if(isTailoredNode(node)) {
                      ++count;
                  } else {
                      break;
                  }
              }
              i = nextIndexFromNode(node);
          }
          return count;
      }
docs: Counts the tailored nodes of the given strength up to the next node
  which is either stronger or has an explicit weight of this strength.