Base Filter -> How to use the Unit Number Group Count

How many groups of units are there in a winning line .

Example: 10 17 18 21 31 45, so here we have 3 groups of winning unit numbers, one group of unit =the green shaded area see below. Units 0 and 1 are next to each other so they are in one group, unit 5 is alone,so another group and finally units 7 and 8 are next to each other so they form one group- the third group, so all together we have 3 groups of winning units.