Just a quick 1 liner of powershell to work this one out:
get-wksworkspace | Group-Object state | Select-Object name,count | Sort state -Descending
Which will give you something like:
Name Count
—- —–
AVAILABLE 279
UNHEALTHY 30
PENDING 72
REBOOTING 2
ERROR 3