Class CreateAndAddFunction<K extends CounterKey>