Measuring the Effect of Intellectual Property Rights on Global Patent Quantity and Quality