Text this: Counterion-controlled phase equilibria in a charge-regulated polymer solution