Compute the number of elements to be copied by multiplying dim sizes along all the dimensions.
benefit
populate