how to get the out array length?