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