adding a usage counter