max counter v1
added benchmarking