Update model.class.php

Updating pagination to include custom count