scannedcount should be calculated based on the number of items scanned, not just the number returned