How can I count the number of rows that a MySQL query returned?
> SELECT COUNT(*) AS total FROM foo WHERE bar= 'value';