fixes #7885 - adding counts to lifecycle environments

as part of this i centralized the errata counts into a template
Should we switch versions to the same counts object structure in another issue?