phpDataMapper_Query::count PHP Method

count() public method

SPL Countable function Called automatically when attribute is used in a 'count()' function call
public count ( ) : integer
return integer
    public function count()
    {
        // Execute query and return count
        $result = $this->execute();
        return $result !== false ? count($result) : 0;
    }