We play pointer math with local 'i', so it must be apr_size_t. Until we decide otherwise, cast the pointer math result back to an int for a nelts result.