How to log the length of a struct array in string or integer?

my array is struct type