private static int CountDigits(int number) { return Mathf.Max(2, Mathf.CeilToInt(Mathf.Log10((float)number))); }