I need a formula/query for column B in Access that would produce the result below. This would be in an update query where B would be the calculated field. In excel, the formula would be Countif(B$2:B2,B2) and would drag down so that the result would show the number of times that field has been seen above. I have millions of records so need a formula to produce this exact result.
A B
Ben 1
Adam 1
Chris 1
Ben 2
Ben 3
Chris 2