Rename OnApplyNumberOfPhases to OnApplyPhaseCount.