count Enum Constants
Returns the number of enum constants that satisfies the specified predicate present in the declaration.
Return
The number of enum constants in the declaration.
Parameters
predicate
The predicate function to determine if an enum constant satisfies a condition.