awk '{ print $0(++a[$0]) }' [download]
In reply to Re: Counting within an array by ambrus in thread Counting within an array by ddrew78