Is it possible to check the length of an enum?

I’m kind of surprised by this- I know UE1-3 had something called EnumCount, but intellisense doesn’t recognize this in 4 and I can’t find a reference to it in the API.