Retrieves the requested memory error counter for the device.
:param device: The identifier of the target device.
:type device: intptr_t
:param error_type: Flag that specifies the type of error.
:type error_type: MemoryErrorType
:param counter_type: Flag that specifies the counter-type of the errors.
:type counter_type: EccCounterType
:param location_type: Specifies the location of the counter.
:type location_type: MemoryLocation
:returns: Reference in which to return the ECC counter.
:rtype: unsigned long long
.. seealso:: `nvmlDeviceGetMemoryErrorCounter`