Package for word enumeration of regular languages