Update Counter entity.