Added code for newCounter and tuple