Equivalent to the MySQL-Query: “SELECT COUNT(*) FROM users” in MongoDB ODM is: $count = $this->dm->createQueryBuilder(‘Documents\Functional\Users’)->getQuery()->execute()->count() http://stackoverflow.com/questions/10978242/mongodb-odm-select-count-equivalent