added MapCounter implementation