I can't figure out how?click=yeswould help with the independence, but I have two ideas for that.
Doesn't each profile have its own database entry? Can't you just put the profile's visit count in that entry?
Otherwise, the text file needs to store which user each number applies to. This could be done by either changing the text put in the file or using a different file for a different user.

