I need to count the number of occurences from a set of numbers.
For example:
1
1
1
0
1
1
1
1
0
1
1
The total number of occurences should be 3 because it should count consecutive occurences. Any gaps such as 0 will create a new set of occurences that group the numbers into 1 occurence. I hope that makes sense.
111 = 1
0
1111 = 1
0
11= 1
Total = 3
Bookmarks