add accumulator and counter to list of structures