Refactored Doctrine\QueryCollection

It now uses the Doctrine built-in CountWalker, removing the dependency on DoctrineExtensions.