I guess I'm a little lost here? That code updates the total number of videos that an individual user watches. So, when you go to your individual profile for that user, you can see how many videos that particular user has watched. The video's total views are recorded whether someone logs in or not. That is stored on the video itself (and not on the user). So, for each video, you have a total number of views. On a persons profile, you have a total number of videos that that particular person has watched.
Question for you:
Are you wanting to see a total for the number of times an individual's videos has been watched? For example, if I uploaded 50 videos and each video was watched 10 times, are you wanting to see something like "My videos have been watched 500 times"?
Bookmarks