Codice PHP:
$sql " SELECT count(*) as 'totale' from tabella"