I am new in DDD and my understansing of the repository pattern is that it acts like  a collection of aggregate roots where you can add, delete, update,etc a certain aggregate root.My question is, where code that performs aggregate functions (count, group by, sum, etc), should be placed, since it does not return or operate over an aggregate root?Thanks
Agreggate functions in a Repository
design patterns;domain driven design