docs/code-frags/counter-col/lib/CounterCol.js
function(update, options) {
          var count = 0
          for (var id in this.cache) {
            count += 1
            if (update.$inc) {
              this.cache[id].count += update.$inc
            } else {
              this.cache[id].count -= update.$dec
            }
          }
          return count
        }
function(update, options) {
          var count = 0
          for (var id in this.cache) {
            count += 1
            if (update.$inc) {
              this.cache[id].count += update.$inc
            } else {
              this.cache[id].count -= update.$dec
            }
          }
          return count
        }
post-updateConfig-memCacheCounterAdvanced pre-update-memCacheCounterAdvanced