public function count($useMasterKey = false)
    {
        $this->limit = 0;
        $this->count = 1;
        $queryString = $this->buildQueryString($this->_getOptions());
        $result = AVClient::_request('GET', '/classes/' . $this->className . '?' . $queryString, null, null,
            $useMasterKey);

        return $result['count'];
    }
public function count($useMasterKey = false)
    {
        $this->limit = 0;
        $this->count = 1;
        $queryString = $this->buildQueryString($this->_getOptions());
        $result = AVClient::_request('GET', '/classes/' . $this->className . '?' . $queryString, null, null,
            $useMasterKey);

        return $result['count'];
    }
public function count ( $ useMasterKey = false ) { $ this -> limit = 0 ; $ this -> count = 1 ; $ queryString = $ this -> buildQueryString ( $ this -> _getOptions ( ) ) ; $ result = AVClient :: _request ( 'GET' , '/classes/' . $ this -> className . '?' . $ queryString , null , null , $ useMasterKey ) ; return $ result [ 'count' ] ; }
Execute a count query and return the count.

@param bool $useMasterKey If the query should use the master key

@return int
Execute a count query and return the count .