Measuring Technological Innovation over the Long Run