adding counter to end of each item in the array