Added ability to both increment or directly set counters