Blog and User Counter on Homepage


may you tell me how i can put the actual number of blogs and user count for the entire network on a Frontside.
So that i can put it everywhere i want via hml or shortcode?

Should look similiar to the Nework Dashboard function which counts both.

There it says as example:
You have 200 Blogs and 200 Users.

Would be nice if you can tell me the code for this function and where to put it in (i think the themes function.php?)

Thanks in advance