Inventory or Quantity field
This solved my question: https://www.lullabot.com/articles/extending-a-field-type-in-drupal-8

It is an example of how to extend the reference field and also associate a quantity with the reference. It was what I was looking for.