Puedes hacer una funcion:
Código PHP:
function totalRegistros( $tabla ) {
global $db_link;
$sqlTotal = mysql_query("SELECT COUNT(*) FROM $tabla", $db_link) or die(mysql_error());
$row = mysql_fetch_row($sqlTotal);
return $row[0];
}
y asi solo tendrias que llamarla por tabla:
Código PHP:
$totalNoticias = totalRegistros("noticias");
$totalCommentarios = totalRegistros("comentarios");
// etc.
Saludos.