misleading variable name. Call this `renderedPortalCount` or `visiblePortalCount` or so.