It is sometimes useful to retrieve the number of elements of a list, for instance to loop over it. Follows an example, with a list called "liste" (which, here, is a global)
global nb_liste : list sizeof global(liste)