lib/recurly/pager.php
public function count() {
    if (isset($this->_href)) {
      $headers = Recurly_Base::_head($this->_href, $this->_client);
      if (isset($headers['x-records'])) {
        return intval($headers['x-records']);
      }
    } elseif (isset($this->_objects) && is_array($this->_objects)) {
      return count($this->_objects);
    }

    return null;
  }
public function count() {
    if (isset($this->_href)) {
      $headers = Recurly_Base::_head($this->_href, $this->_client);
      if (isset($headers['x-records'])) {
        return intval($headers['x-records']);
      }
    } elseif (isset($this->_objects) && is_array($this->_objects)) {
      return count($this->_objects);
    }

    return null;
  }
public function count ( ) { if ( isset ( $ this -> _href ) ) { $ headers = Recurly_Base :: _head ( $ this -> _href , $ this -> _client ) ; if ( isset ( $ headers [ 'x-records' ] ) ) { return intval ( $ headers [ 'x-records' ] ) ; } } elseif ( isset ( $ this -> _objects ) && is_array ( $ this -> _objects ) ) { return count ( $ this -> _objects ) ; } return null ; }
If the pager has a URL this will send a HEAD request to get the count of
all records. Otherwise it'll return the count of the cached _objects.

@return integer number of records in list
@throws Recurly_Error
If the pager has a URL this will send a HEAD request to get the count of all records . Otherwise it ll return the count of the cached _objects .