Count sub-objects' array length

Hi @arronar ,

@dh suggestion is optimal way.

OBJECT_VALUES() is for object only. As data is not object it will return NULL. UNNEST expects ARRAY. If you remove OBJECT_VALUES() it will work. Unnest is not needed if you follow @dh suggestion.