Text this: A measure for the number of commuting subgroups in compact groups