<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def lrem(self, key, count, value):
 """Removes the first count occurrences of elements equal to value from the list stored at key. :raises TypeError: if count is not int """

        if not isinstance(count, int):
            raise TypeError("count argument must be int")
        return self.execute(b'LREM', key, count, value)