Great stuff, Jason!
I'm still getting to grips with PHP but I think what I need now is an IF ELSE statement ie.
IF the recordset is filtered by maxPrice show number of records in that price range
ELSE show TOTAL number of records, ie. number of ALL records.