diff --git includes/pager.inc includes/pager.inc
index 4934cc1..0a451de 100644
--- includes/pager.inc
+++ includes/pager.inc
@@ -117,7 +117,7 @@ class PagerDefault extends SelectQueryExtender {
    * @return SelectQueryInterface
    *   A count query object.
    */
-  protected function getCountQuery() {
+  public function getCountQuery() {
     if ($this->customCountQuery) {
       return $this->customCountQuery;
     }
