code looks like below:
class workers1(Thread): ... def __init__(self): ... Thread.__init__(self) ... def run(self): ... ...do some stuff clas
You can use a semaphore for each class and get their counts: see link.