public function count($field = null)
    {
        // when no field is given we use *
        if (is_null($field))
        {
            $field = new Expression('*');
        }

        // return the column
        return (int) $this->column(new Func('count', $field));
    }
public function count($field = null)
    {
        // when no field is given we use *
        if (is_null($field))
        {
            $field = new Expression('*');
        }

        // return the column
        return (int) $this->column(new Func('count', $field));
    }
public function count ( $ field = null ) { // when no field is given we use * if ( is_null ( $ field ) ) { $ field = new Expression ( '*' ) ; } // return the column return ( int ) $ this -> column ( new Func ( 'count' , $ field ) ) ; }
Just return the number of results

@param string                    $field
@return int
Just return the number of results