count the map relations