Get worker instance id and count from context