That was part of the old puppet-ceph code, where it depended on the CPU count. But from the mkfs.xfs code it's calculated depending on the size of the disk. Currently we would e.g. get 32 AGs for a 3 TByte disk. But if the machine hast 16 cores I'm not sure if we should set it to a lower number.