select count(*) from table where ...; select bla from table where ... LIMIT 100;