Added comment to NumberOfTransformations to clarify reasoning behind recursive logic since it isn't immediately obvious.