Dupe clarification: This question is not an exact duplicate of this question, rather a follow-up. The other answer explains why the badges got awarded multiple times. But the badge number seems not to be recalculated up to now. For this reason I'm reporting the wrong number of badges, not that they got re-awarded earlier.
In my profile page (Activity Tab) the total number of gold badges achieved is displayed as 5, but in the badges section, only 3 gold badges are displayed.
According to this comment, the badge count on the usercard should have been updated long ago.