Added filter pages in admin section.
Rename count_pages() method to countPages().