How To Show Number Of Users On Website

I was able to pick up the following code for my theme functions.php file which adds the total number of Users to your site using shortcode [user_count]. You can see this at the bottom of

function wpb_user_count() {
$usercount = count_users();
$result = $usercount['total_users'];
return $result; }
// Creating a shortcode to display user count
add_shortcode('user_count', 'wpb_user_count');

Unfortunately it shows the number of Users on one of my sub-domains, not the total number of Network Users.

How can I modify this to take the number from the Network Users?
Thank you.