i want to implement my own Zend_Paginator_Adapter so i implemented Zend_Paginator_Adapter_Interface (docs). i am now at implementing count(). am i right to say that if my query is
SELECT * FROM Posts LIMIT ... // where limit is for pagination purposes
i need to get the total number of rows in the table (to return in count())?
SELECT COUNT(*) FROM Posts
it seem unavoidable to have 2 queries? i am not too concerned in my current project about performance, but the need for 2 queries, just made me think, so i wanted to just ask here