Is there any way to set up a coupon code in WooCommerce so that a usage is counted for each line item in the order?

Example process:

1. Customer has a voucher code unique to themselves with 100 use maximum
2. Customer places an order with 10 products in it and uses the voucher code
3. Voucher now has 90 remaining uses

And another:

1. Customer has a voucher code unique to themselves with 100 use maximum
2. Customer places an order with 200 products in it and uses the voucher code
3. Voucher now has 0 remaining uses
4. Customer pays full price on the remaining 100 products

As it is, I can't see any core way to do this, or any third party extension that would allow it.