docs: public int numKeys() {
          int result = basic.numKeys();
          if (chains != null)
              for (DeterministicKeyChain chain : chains)
                  result += chain.numKeys();
          return result;
      }