The standard built-in predicate current_predicate/1 can be used to enumerate know predicates. The built-in predicate predicate_property/2 can be used to enumerate predicate properties, including the number of clauses. Combined with Peter suggestion, that should allow you to quickly compute exactly what you want.