Set Num

Sets the numbers of elements of an array. Modifies the input array.