lib/CosmoW/Riak/Collection.php
public function count(array $query = array(), $limitOrOptions = 0, $skip = 0)
    {
        $options = is_array($limitOrOptions)
            ? array_merge(array('limit' => 0, 'skip' => 0), $limitOrOptions)
            : array('limit' => $limitOrOptions, 'skip' => $skip);

        $options['limit'] = (integer) $options['limit'];
        $options['skip'] = (integer) $options['skip'];

        return $this->doCount($query, $options);
    }
public function count(array $query = array(), $limitOrOptions = 0, $skip = 0)
    {
        $options = is_array($limitOrOptions)
            ? array_merge(array('limit' => 0, 'skip' => 0), $limitOrOptions)
            : array('limit' => $limitOrOptions, 'skip' => $skip);

        $options['limit'] = (integer) $options['limit'];
        $options['skip'] = (integer) $options['skip'];

        return $this->doCount($query, $options);
    }
public function count ( array $ query = array ( ) , $ limitOrOptions = 0 , $ skip = 0 ) { $ options = is_array ( $ limitOrOptions ) ? array_merge ( array ( 'limit' => 0 , 'skip' => 0 ) , $ limitOrOptions ) : array ( 'limit' => $ limitOrOptions , 'skip' => $ skip ) ; $ options [ 'limit' ] = ( integer ) $ options [ 'limit' ] ; $ options [ 'skip' ] = ( integer ) $ options [ 'skip' ] ; return $ this -> doCount ( $ query , $ options ) ; }
Invokes the count command.

@see http://php.net/manual/en/mongocollection.count.php
@see http://docs.mongodb.org/manual/reference/command/count/
@param array         $query
@param integer|array $limitOrOptions Limit or options array
@param integer       $skip
@return integer
Invokes the count command .