Add count method in the DoctrineOrmConnectionRepository