Yes, look into the SQL_CALC_FOUND_ROWS extension of MySQL.
Say you have:
SELECT * FROM table LIMIT 10
$num = mysql_numrows($result);
num holds 10.
(And theres 20 items in the table)
SELECT SQL_CALC_FOUND_ROWS * FROM table LIMIT 10
$num = mysql_numrows($result);
$total_result = mysql_query("SELECT FOUND_ROWS()");
$total = mysql_result($total_result, 0, 'FOUND_ROWS()');
num holds 10, total holds 20.