input: Write a function in Python that calculates the number of whole number coordinates located within a given square.  
  assert count_integral_coordinates(1,1,4,4) == 4  
  assert count_integral_coordinates(1,2,1,2) == 1  
  assert count_integral_coordinates(4,2,6,4) == 1
output: def count_integral_coordinates(x1, y1, x2, y2):
      x_min, x_max = min(x1, x2), max(x1, x2)
      y_min, y_max = min(y1, y2), max(y1, y2)
      if x_min == x_max or y_min == y_max:
          return 1 if (x_max - x_min == 0 and y_max - y_min == 0) else 0
      return (x_max - x_min - 1) * (y_max - y_min - 1)