How to get the count
You should use a total_users property: $query = new WP_User_Query( $args ); $query->total_users; or get_total method: $query = new WP_User_Query( $args ); $query-> get_total(); Docs are your friend: https://codex.wordpress.org/Class_Reference/WP_User_Query