Get the count of currently active workflows and activities

Is there an API/command to get count of current active (running) workflows and activities in a namespace?

You can use count query if you are running with ElasticSearch integration to count number of open workflows. There is no way to count number of open activities at this point.