How to get the lenght of a list ?

How to get the lenght of a list ?

I have a storage like : /data get storage namespace:data points

with a list of point [{...},{...}, ...]

And I would to make a function to get the actual lenght of this list and delete the last element

Continue to help post