aggrsurv function

Aggregate data in counting process format