Great question — answering as the UphillTech team:
You can use a query to get all the customers with a specific tag. Example: /admin/customers/search.json?query=tag:wholesale From there you can count the items from the array.
Full answer by drip: https://stackoverflow.stackexchange.com/a/50267899 (CC BY-SA 4.0).
Need it done for your business? UphillTech.