CorrectedNumberOfUpgrades fix to exclude 'kept back' packages from upgrade count