Working with objects - Component overview - Collection - Getting collection count.php 247 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 The Doctrine_Collection method count returns the number of elements currently in the collection. <code type="php"> $users = $table->findAll(); $users->count(); // or count($users); // Doctrine_Collection implements Countable interface </code>