def __total_pages(self) -> int:
        """ Return max pages created by limit """
        row_count = self.model.query.count()
        if isinstance(row_count, int):
            return int(row_count / self.limit)
        return None
Return max pages created by limit