checkNumPackages