Device pinning should count number of device by IMEI: International Mobile Equipment Identity.
Currently Box count number of device by Device ID provided by Apple. Device ID is unique. If user re-installed App, Box count is up even in spite of same device.
Apple does not currently give access to IMEI within code (they used to). Currently we get a vendor ID as specified by Apple, which may or may not change (depending on iOS version).