def device_count(self, scope_id, body, **kwargs):
    'Counts the Devices  # noqa: E501\n\n        Counts the Devices with the given DeviceQuery parameter returning the number of matching Devices  # noqa: E501\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.device_count(scope_id, body, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool\n        :param str scope_id: The ScopeId in which to count results (required)\n        :param DeviceQuery body: The DeviceQuery to use to filter count results (required)\n        :return: CountResult\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    kwargs['_return_http_data_only'] = True
    if kwargs.get('async_req'):
        return self.device_count_with_http_info(scope_id, body, **kwargs)
    else:
        data = self.device_count_with_http_info(scope_id, body, **kwargs)
        return data
Counts the Devices  # noqa: E501

Counts the Devices with the given DeviceQuery parameter returning the number of matching Devices  # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.device_count(scope_id, body, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str scope_id: The ScopeId in which to count results (required)
:param DeviceQuery body: The DeviceQuery to use to filter count results (required)
:return: CountResult
         If the method is called asynchronously,
         returns the request thread.
def device_count(self, scope_id, body, **kwargs):
    'Counts the Devices  # noqa: E501\n\n        Counts the Devices with the given DeviceQuery parameter returning the number of matching Devices  # noqa: E501\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.device_count(scope_id, body, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool\n        :param str scope_id: The ScopeId in which to count results (required)\n        :param DeviceQuery body: The DeviceQuery to use to filter count results (required)\n        :return: CountResult\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    kwargs['_return_http_data_only'] = True
    if kwargs.get('async_req'):
        return self.device_count_with_http_info(scope_id, body, **kwargs)
    else:
        data = self.device_count_with_http_info(scope_id, body, **kwargs)
        return data