Object calisthenics (http://binstock.blogspot.com/2008/04/perfecting-oos-small-classes-and-short.html) is a set of rules to practice principles of good object oriented design. ObjectDojo is a command line utility to check the rules in your codebase.
Object Dojo: Learn good object oriented design using Object Calisthenics | Heykuki News