raga come posso contare gli id di questo codice?
Codice PHP:
                <?
include("config.php");
$sql =mysql_query("select * from hotel order by id asc");
while (
$arr=mysql_fetch_row($sql)) {
    
$ido=$arr[0];
    
$nome=$arr[1];
    
$stelle=$arr[2];
    
$localita=$arr[3];
    
$dir=$arr[4];
    
$email=$arr[6];
    
$ordine=$arr[8];
    
$foto=$arr[9];
    
$link=$arr[11];

$sql2=mysql_query("select * from offerte where hotel='$ido'");
    unset(
$ido1);
    while (
$arr1=mysql_fetch_row($sql2)) {
        
$ido1++;
        
$titolo=$arr1[1];
        
$sotto=$arr1[2];
        
$prezzo=$arr1[3];
        
$tratt=$arr1[4];
        
$pacco=$arr1[6];

    }
}
?>
devo vedere quante offerte ho inserito in totale