'nummatSegs' to modular form.  Can probably get rid of altogether, and just take size(matType)