I have one column table that has some items in it say department name such as IT, IT, Sale, IT, Market, Sale, Market etc.
How can I add another column that counts each department name in the following way, basically each item will have its own count.
For example
name added column
IT, 1
IT, 2
Sale, 1
IT, 3
Market, 1
Sale, 2
Any idea how can I achieve ?