codice:
$sql = 'SELECT COUNT(*) AS totale FROM tabella';
$st = mysql_query( $sql );
$row  = mysql_fetch_assoc( $st );
echo $row['totale'];