Fix For IdCounter Logic
Fix For IdCounter Logic

IdCounter was setting next as it's current value after the first step.
Set so that next would always be set to current value +1

bwatts/Totem,bwatts/Totem