docs: public static long getP2SHSigOpCount(byte[] scriptSig) throws ScriptException {
          Script script = new Script();
          try {
              script.parse(scriptSig);
          } catch (ScriptException e) {
              // Ignore errors and count up to the parse-able length
          }
          for (int i = script.chunks.size() - 1; i >= 0; i--)
              if (!script.chunks.get(i).isOpCode()) {
                  Script subScript =  new Script();
                  subScript.parse(script.chunks.get(i).data);
                  return getSigOpCount(subScript.chunks, true);
              }
          return 0;
      }