updated master protocol getNumConsumers function