Measuring Software Reuse: Principles, Practices, and Economic Models