Helium enrichment and carbon-star production in metal-rich populations