using int instead of char for the counter map