public static int lookupHowManySolutions(Stella_Object queryoroptions) {
    { Stella_Object howmany = Logic.lookupQueryOption(queryoroptions, Logic.KWD_HOW_MANY);

      if (howmany != null) {
        return (((IntegerWrapper)(howmany)).wrapperValue);
      }
      else {
        return (1);
      }
    }
  }