allocate memory for counters from kernel