other than using count in the SQL query, you can do your query and get the # of rows returned.
$result = mysql_query("SELECT * FROM members");
$total = mysql_num_rows($result);
echo "Members: " . $total;
you don't need a while loop to count the members for you when mysql_num_rows will do that for you. if you want to narrow your results to specific criteria.
$result = mysql_query("SELECT * FROM members WHERE country = 'USA'");
$total = mysql_num_rows($result);
echo "Members in United States: " . $total;