It depends of what InSim you are using. There's a known bug on LFS External that causes this behavior, and if you are using an old source, so probably it's your problem.
I strongly recommend to use InSimDotNet instead LFS External, but if you really want to use, do the following:
- Search for: Players.Count (is the one near MCI packet)