I think you want "quantity". The two packages differ only in quantity. The quantity of the first box is 10, and the quantity of the second box is 20.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.