There’s only a few 1,000 ways to do that.
Firstly, where are you getting the nubmers from? Are they members on your site? Some other site?
Secondly, are the members segmented or grouped so that you can get the different group totals?
There’s far too many ways that this can be done, and everything will depend on the et up of your website, so we’re going to need a whole lot more info before we could give any sort of real “solution” for this.
Oh, and by the way… the forum volunteers here (myself included) don’t just write code blocks for free. ?? To get a good response the best thing to do is try it for yourself, and them come back here if something doesn’t work, and let us know what errors your facing from the code that you’ve written. Do that and we’ll be able to give you a whole lot more help.