// Convert a counter.Counter into a frozen counter, returning the new // frozen counter and the index required to convert it back. func Freeze(c *counter.Counter) *Counter { ks := NewKeySet(c.Keys(), c.Base) return FreezeWithKeySet(c, ks) }