cGroupSpan function

Count the colspan of each colgroup