only count instances in running state