code: def zcount(self, key, min=float('-inf'), max=float('inf'),
                 *, exclude=None):
          if not isinstance(min, (int, float)):
              raise TypeError("min argument must be int or float")
          if not isinstance(max, (int, float)):
              raise TypeError("max argument must be int or float")
          if min > max:
              raise ValueError("min could not be greater than max")
          return self.execute(b'ZCOUNT', key,
                              *_encode_min_max(exclude, min, max))