private int getParamNumberInCommand(String command) {
    int result = 0;
    if (command == null) return result;
    for (int i = 0; i < command.length(); i++) {
      if (command.substring(i,i+1).equalsIgnoreCase("?")) result++;
    }
    return result;
  }