Good evening. Help to display not the number of items in the calculation, but the number of groups of items http://prntscr.com/c40jbw , which include, as in this example, 3 items. thank
jsfiddle.net/vnpm1y06/153 here is an example. but this example counts the number of turquoise blocks, and it is necessary to count the number of screens, i.e. groups of these blocks. in this case, 2 blocks in the group prntscr.com/c40p1r