add counter to record array