In GZDoom the monster count is 22 at the start of the map.
Maybe other source ports don't count Lost Souls in the total or something like that?
That must be it, I tested in Crispy Doom. Now yeah that imp is outside, is there still time for bugfixing?