struct counter_t {
	unsigned long value;
	unsigned long count;
	unsigned int active;
	time_t last_time;
};

extern unsigned long count(struct counter_t *c, int i);
extern void counter_init(struct counter_t *c, int active);
