How to show number of site members on a webpage?

I would like to display or show the total number of my site member on the homepage. I couldn’t find any code reference about how to do it.
I also have tried using count Private Member Data Collection, but it didn’t work because the collection only show data to the authors.
Could anyone help me? Or is there any way to do that with code?

Perhaps this could work for you…