elem_size function

Get the number of elements in a collection