adding the updateCount method to support increment and decrement by custom value