pac: Consistently use item count as the first argument to calloc
Reported by: GCC 14 -Wcalloc-transposed-args