[CoreBundle] Don't call `count()` on collection if not needed
Merge pull request #832 from stloyd/bugfix/core_order

[CoreBundle] Don't call `count()` on collection if not needed