UPDATE! I found a strange issue with a few levels that causes this tool to report an incorrect (and really huge) number of screens on them. The best example of this is egomassive's
Customnibus, which reports a whopping
7970 screens despite having only 4 filled rooms.
Apparently, there's an undiscovered bug in the original KS level editor that causes some levels to have their Map.bin file filled with useless null data, which increases the uncompressed map file size by A LOT (about
~30MB in some cases!). If you use this tool on your own level and get an unexpectedly large number of screens (i.e, more than 1000 in a small level), it's very likely that your level is affected and has a big chunk of null data inside the Map.bin file.
This is basically harmless and won't prevent you from playing those levels and/or keep editing them, so you can just ignore it. Also, the GZ compression that KS uses for the Map.bin file pretty much cancels the increase in data size, which is why you don't end with a +30MB level folder and probably never notice this is happening internally. However, while this doesn't damage the actual level data in any way, some third party tools (like this screen-counting tool and KSLC) will report incorrect values and/or have trouble opening these levels. I'm thinking of updating this tool and including a simple check that will detect this error and ask you if you want to generate a fixed Map.bin file. I could also produce a standalone small tool just for that.
Edit: Just to be completely clear, this is not something caused by this tool :P2 If you get an incorrect (and absurdly high) number of screens when using the program on a level, it means the Map.bin file *already* had this issue from the start.