As a personal exercise, I was wondering how to generate a column for the number at risk, or the number of observations that have not yet experienced the event at time t