private int Number(Point point, Point point2, Point[] points) {
       int count =0;
       for(int i=0; i<points.length ;i++){
           if((point2.x- point.x)*(points[i].y-point.y) ==
                   (points[i].x- point.x)*(point2.y-point.y)){
               count++;
           }
       }
       return count;
   }