Counting Rules

Anyone know of a way to (quickly, easily) determine how many rules you’ve written into a game?

Not an urgent matter – I just like how the compiler tells you that your game contains “50 rooms and 200 things.” It would be neat to see the same count for rules.

Ron Newcomb has a nice extension here that will let you writeWhen play begins: let the rule set be a list of rules; repeat with the index running from zero to the number of rulebooks: let the current rulebook be the index as rulebook; repeat with the current rule running through the unmodified current rulebook: add the current rule to the rule set, if absent; say "The story has [the number of entries in the rule set minus one] rules listed (not counting this one)."