<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def limit(self, limit):
 """Limit number of records"""

        clone = self._clone()

        if isinstance(limit, int):
            clone._limit = limit

        return clone