small refactor for .map
now displays actual count instead of dummy count of 0