Yes that example is incorrect, it will display the total number of currently logged in users. The number of individual logins is not recorded, only the last login date. What you can do is increment an integer attribute on the user on every login and then present that in the profile.
How can I get the number of times a user has logged in? On sc3demo.netstar.se the "Logins" on my page are generated by OnlineStatusModule.OnlineCount but that can't be correct.