Update for using shared_count with new api for apikeys and custom domains