public static int numberActionsApplicableInState(State currentState, GroundedAction action1, GroundedAction action2, boolean reverse)
	{
		GroundedAction firstAction = (reverse) ? action2 : action1;
		GroundedAction secondAction = (reverse) ? action1 : action2;
		
		int count = 0;
		State nextState = currentState.copy();
		
		if (firstAction != null) {
			count += ExperimentHelper.isGroundedActionApplicableInState(currentState, firstAction) ? 1 : 0;
			nextState = firstAction.executeIn(currentState);
		}
		if (secondAction != null) {
			if (firstAction == null || (firstAction.params[1] != secondAction.params[1] &&
					ExperimentHelper.isGroundedActionApplicableInState(nextState, secondAction))) {
				count++;
			}
		}
		return count;
	}