Added async version of GetNumDevices.