Not to be a spoil sport but you're sort of blowing it:
Lets say owner 45 has 20 items
$sql = "SELECT * FROM items WHERE owner='45'"
$query = mysql_query($sql);
echo mysql_num_rows($query);
will echo "20"
$sql = "SELECT COUNT(*) FROM items WHERE owner='45'"
$query = mysql_query($sql);
echo mysql_num_rows($query);
Will echo "1".
Why? because the COUNT function aggregates all the information into a single value in a single row:
$sql = "SELECT COUNT(*) FROM items WHERE owner='45'"
$query = mysql_query($sql);
$row=mysql_fetch_array($result);
echo $row[0];
Will echo "20" -- the number of rows found by the COUNT function