From Dev Max_money is just a sanity check for transactions. The actual total coins is determined by the emission schedule, which is:
261350*20 for the first 2 years.
261350*20 same amount over the next ~122 years or so.
Plus the 5% premine
Subsidy halves every 261350 blocks (approx 2 years worth). Distribution looks as follows:
Year 2: 50% of coins mined
Year 4: 75% of coins mined
Year 6: 87.5% of coins mined
Minus about 20*200 for initial blocks that didn't rewarded anything. All totaled up, it comes in at slightly under 11 000 000.