What kind of DB are you using?
It would be simple enough to create a quick code snippit to log +1 to a visited column every time there is a a successful login. By that user.
Im not sure how he is gonna do that using only JS. You will need a php backend or something to connect to the DB...