I was wondering, is there a quick julia way to get the length of an enum type? For example, something like

`@enum P n h m l`

and then `len(P)`

or `length(P)`

would return 3?

**EDIT:** one more side note, I do not quite understand why did this enum type start counting from 0, not from 1? I thought Julia is more matlab/math friendly, by that I mean it usually gets counting from 1, not 0, right?