This should be optimized somehow. I've been thinking we need a "MetaDao" that keeps track of various bits of meta-information for each language and dao. I suppose you could pull it from there if we had it?

Another option is to add getCount() to the Daos that accepts a DaoFilter. It would just call the sql count statement instead of returning the actual objects. If there were indexes on the fields we cared about, it would be super fast.