How many packages can be built, but not distributed?

  • Simplifying assumption: RESTRICTED should not depend on build environment

With this assumption, the question is easy to answer.