hey people.
what is the best way to count a the number of results from a mysql query?

Is it best to do one query, and then mysql_num_rows($query)
or is it best to do two queries, one a count query ( SELECT count(*) FROM whatever) and then the other query as normal?