fixes #7885 - adding counts to lifecycle environments

as part of this i centralized the errata counts into a template
Since above you said the `enabled` scope should return all repositories for a product across all environments and content views, should you limit this here to only Library/Default content view products?