How to get the count of total values defined in an enumeration?
Enum.GetNames(typeof(SomeEnum)).Length;