Perhaps something as simple as # of methods, # of classes in the code base Or as advanced as https://en.wikipedia.org/wiki/Cyclomatic_complexity