I want to create a cumulative counter of the number of times each value appears.
e.g. say I have the column:
id  
1  
2  
3  
2  
2  
1  
2  
3
This would become:
id   count  
1     1  
2     1  
3     1  
2     2  
2     3  
1     2  
2     4  
3     2  
etc...
 
     
     
     
     
     
     
    