An inelegant but workable solution is this:
Enum color Blue Green Red End Enum Public const numberOfColors as integer = 3