Enumeration Nombre

Bonjour,
Je recherche un moyen de connaitre le nombre d’item dans une énumération ou d’otenir la liste par programmation.
merci

Good morning,
I am looking for a way to know the number of items in a enumeration or to build the list by programming.
thank you