mysql_num_rows, perchè mysql_fetch_array (su cui faresti il count) non torna un array.