First version of the hug counter