I would like to get a count of the total members for a user group. I see plenty of ways to get the global user count in the Confluence API, but nothing similar to Jira’s GroupManager#getUsersInGroupCount(com.atlassian.crowd.embedded.api.Group group).
I am wary of getting the entire member set due to the potential for a very large group resulting in a big memory hit. Raw SQL is an obvious conclusion but a minefield in terms of syntax and maintenance. Any thoughts?