first imlement get_posts() and get_post_count() methods in your post_model,
get_posts($filter, $offset, $limit) will filter posts according to data in $filter, and get posts starting from $offset and ending with $limit;
get_post_count($filter) will return total post count