fixes #7885 - adding counts to lifecycle environments

as part of this i centralized the errata counts into a template
we don't expose 'content_hosts' in the api, should we start?