fixing issue where incrementing the return value of a counter would increment the counter