public function count(): int
    {
        $this->flags['count'] = true;
        $pdoStatement = $this->provideStatement();
        $pdoStatement = $this->execute($pdoStatement);
        return $pdoStatement->fetchColumn();
    }
public function count(): int
    {
        $this->flags['count'] = true;
        $pdoStatement = $this->provideStatement();
        $pdoStatement = $this->execute($pdoStatement);
        return $pdoStatement->fetchColumn();
    }
public function count ( ) : int { $ this -> flags [ 'count' ] = true ; $ pdoStatement = $ this -> provideStatement ( ) ; $ pdoStatement = $ this -> execute ( $ pdoStatement ) ; return $ pdoStatement -> fetchColumn ( ) ; }
Executes select query and returns number of matching rows.

@return int
@throws DatabaseException
Executes select query and returns number of matching rows .