a quick and dirty way to get the number of licenses in use would be to do like
Code:
zmprov gaa | egrep -c -v 'admin@domain.com|spamtrain@domain.com|hamtrain@domain.com'
This would count the numbre of accounts excluding ones that don't use licenses like admin. add any other accounts that don't count toward licenses like wiki account to the inverse grep statement (i can't remember them all)