changed update counter to act on unscoped model