The Doctrine_Collection method count returns the number of elements currently in the collection.