array-total-size
(array-total-size array)
Returns the total number of elements in array -- the product of its dimension sizes over every dimension. For a rank-1 vector this is simply its length; for a rank-2 array it is rows times columns; for a rank-0 array it is 1 (the empty product), since such an array holds exactly one element. See also array-dimensions.
A string is a rank-1 array of characters, so its total size is its capacity — for a character vector with a fill pointer, more than its length.