internal static int howMany(int x, int y) { long res = (((long)x + ((long)y - 1)) / (long)y); if (res > int.MaxValue) return 0; return (int)res; }