Have you had more than 6 online?
I think the issue is that in order to "update" or store the total - somebody needs to load the Index Page which captures the newer number.
If nobody goes to that page - then the information will never get updated.
I haven't played with the hack you posted above to see if it works... because most of use IIP and/or the sidebar like here.