Is there a way, short looping through the DB, to find out how many entries there are?

Tanks