perhaps it'll be easier if you change your SQL statement like this :
$qry = "select count(*) AS arbitrary_field_name from table_name where sort='xxxx'"
then to fetch it you may use :
$result = mysql_query($qry);
list($rs) = mysql_query($result);
OR
$rs = mysql_fetch_array($result);
echo ($rs["arbitrary_field_name"]);
Hope it works