added regex replace, arbitrary counter and counter groupBy import