per contare quanti record ci sono in una tabella..
è accettabile sta roba?

$comandosql2 = "select COUNT( * ) as clientipres FROM $tabclienti";
$vista = mysql_query($comandosql2,$link) or die ("errore ins id");
print clientipres;