List.SublistLengths node

Capture

The node List.SublistLengths node isn’t available for higher versions of Dynamo.
How / with what node(s) can i replace this?

List.Count + levels wil ldo: