fixes #7885 - adding counts to lifecycle environments

as part of this i centralized the errata counts into a template
I recognize this class is kind of minor, but a simple test of it would be nice (especially since you are adding the first one of this type).