script/gen_iga_patch.py: report number of DOFs per axis