Earlier today I answered a question about the badge multiplier mis-alignment on the user profile page. While debugging the answer for that question, I went through few of the top ranked users profile pages such as Shog9, Oded, etc. where the badge count (x multiplier) was not shown for the top 3 Gold badges they have earned. But then, upon looking Tim Post and Monica Cellio's profile, I noticed the badge count is displayed next to some of their top 3 Gold badges.
Here, I would like to give an example of Shog9 and Monica Cellio's profile page for the comparison purpose. Pay attention to the list of Rarest badges under the Gold Badges section.
Here is Shog9's Badges section screenshot:
and, here is Monica Cellio's Badges section screenshot:
I would like to know what kinda algorithm is used while determining when to display or not to display the badge count multiplier. Can anyone please explain this.