src/Database/Drivers/Driver.php
public static function count($sql)
    {
        $data = self::query($sql);
        $result = $data->fetchAll(PDO::FETCH_ASSOC);
        //
        return  $result ? count($result) : -1;
    }
public static function count($sql)
    {
        $data = self::query($sql);
        $result = $data->fetchAll(PDO::FETCH_ASSOC);
        //
        return  $result ? count($result) : -1;
    }
public static function count ( $ sql ) { $ data = self :: query ( $ sql ) ; $ result = $ data -> fetchAll ( PDO :: FETCH_ASSOC ) ; // return $ result ? count ( $ result ) : - 1 ; }
get number of rows of SQL query.

@param string

@return int
get number of rows of SQL query .