Added repository method for statistics