I added the quantity attribute to the domain