
You are given a 2D array points of size n x 2 representing integer coordinates of some points on a 2D plane, where points[i] = [x _i , y _i ] .
Count the number of pairs of points (A, B) , where
A is on the upper left side of B , and
there are no other points in the rectangle (or line) they make ( including the border ), except for the points A and B .
Return the count.
2 <= n <= 50points[i].length == 20 <= points[i][0], points[i][1] <= 50All points[i] are distinct.