You already test to make sure that you have at least one record returned from your query.
So in theory you could just expand the test out a little i.e.
You currently have
if (mysql_num_rows($result) != 0) {
if you changed this to be..
$numRows = mysql_num_rows($result);
if ($numRows != 0) {
You could then refer to the number of records returned by echoing out the $numRows variable.
Hope it helps