collection length check for native protocol v2 collections