#3531 environment count is on endpointsMap.size