backend also has the capability to count mapId-s for node (currently copied from the angular service)