#include #include #include "counter.h" int main(void) { Counter c = CounterNew(); // Insert elements CounterAdd(c, 1); CounterAdd(c, 1); CounterAdd(c, 1); CounterAdd(c, 2); int value = CounterGet(c, 3); printf("3 appeared %d times\n", value); return 0; }