I currently have a dataset looking like:
Person
A
A
A
B
B
B
C
C
D
D
D
What I would like is to create a new column with
Person Count
A 1
A 2
A 3
B 1
B 2
B 3
C 1
C 2
D 1
D 2
D 3
I have played around with .SD and .N but can't seem to get it. Does anyone have any suggestions? Thanks!