About the number of moderation flags

I have looked on the website for quite some time now, and I still haven't find how the number of moderation flags available is computed.

I think at first I had $10$ of them, but then after a little while, I starting to have some more.

Is there an explicite formula which gives that number ?

It must take in account the number of successful flags distributed.