Added the public method getPageCount

Added the public method "getPageCount ()" so that it is possible to get the number of pages within a .twig file which has a 'paginate' object.