<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, value):
 """ Allows for limiting number of results returned for query. Useful for pagination. """

        self._query = self._query.limit(value)

        return self