re-implemented Map; displayingcounters