Add EntityRepository->countBy() method to complement findBy()

It would be reasonable to add the method to ObjectRepository interface, but I might not be aware of all its implementations that will become broken
Merge remote-tracking branch 'origin'