code: public static int numPoints(INDArrayIndex... indexes) {
          int ret = 0;
          for (int i = 0; i < indexes.length; i++)
              if (indexes[i] instanceof PointIndex)
                  ret++;
          return ret;
      }
docs: Number of point indexes
  @param indexes the indexes
  to count for points
  @return the number of point indexes
  in the array