Adding a linkedhasmap counter