Returns a 3 integer numpy array holding the size of the box, with the same ordering as the box.

input argument (unmodified):
box: numpy int array of shape (2, 3)

lower & upper indices in 3 dimensions defining a logical cuboid subset of a 3D cartesian grid

returns: numpy int array of shape (3)

the extent (shape) of the cuboid defined by box