<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_count(self, result, func, args):
 #pylint: disable=unused-argument """ Private function to return ctypes errors cleanly """

        if result == 0:
            raise ctypes.WinError(ctypes.get_last_error())
        return args