SELECT count(*) FROM clients WHERE name<'foo';
but its performance is directly proportional to the position of the name in the table. For example, searching for Zach takes longer than searching for Abigail. It seems it is not using any index, but rather doing a record by record sweep on the 'count'.
jp