Simon,
There are tools that measure programming concepts. A search for metrics or cyclomatic complexity should give you a bunch of results. Some, like
SourceForge's metrics and
refactorit integrate with IDEs for ease during the development process.
I'm not sure if one could programatically measure domain concepts. If you had a UML diagram, that could be used.