only calculate number of exponent groups when exponents are not reused.