count Constructors
Returns the number of constructors that satisfies the specified predicate present in the declaration.
Return
The number of constructors in the declaration.
Parameters
predicate
The predicate function to determine if a constructor satisfies a condition.