Return len on encountering a struct/record array in count

I'm not certain this is the answer you want to return. At a minimum, I would return `x.size` so this works on more than 1d data. But there is also a case for returning something like `tuple(count(x[k]) for k in x.dtype.names)` to make structured dtypes mirror dataframes.