[ARM] Use kcalloc to allocate counter_config array rather than kmalloc