Just use something like this and add 1 to it, to get the length for a dense array:
Or use std.enums.directEnumArrayLen
Ahh ok, you want array indexing directly via enums.