Returns the length of an array of strings.
str_array must not be `NULL`.
str_array
an array of strings
length of str_array