I AFK a lot.
My primary AFK location has a nether portal close by (roughly 20 meters).
Zombie pigmen spawn occasionally in it, then disappear back to the nether.
This morning, I went into the nether, and was greeted by about 50 zombie pigmen. All probably in the same chunk as the portal.
Are these pigmen counting against the mob cap in the overworld?