How can I get a count of users with a certain role? I have a rather complicated profile completion process on my site.  As users create their profiles, they are awarded more roles.

For my own information, I'd like to be able to quickly check the number of users with role ABC.  I'd also like to be able to quickly know how many users have role ABC and role XYZ, as well as how many users have role ABC and role EFG.

Is there a quick way to do this in Views or some other module?  I don't want to see a list of all users; I just want to know how many have a given role (or combination of roles).
You should create a view with filter criteria "role" then you expose it and allow multiple selection.

Then you can create an header or footer (always in view) and add this piece of code

&lt;?php
  $view = views_get_current_view();
  print $view-&gt;total_rows; 
?&gt;


You should have the php filter enabled.
This works for me.