i wanna know how many slots are used,

The following properties can be appended to a container pointer (ie: getcontainer(0).isopen) and return a value as defined
.usedslots (int): Returns the count of items in the container. but how?