I have a stream of data like this:
0001100111100000111111001110000001111111111000000111000111110000...
(I can represent them as a list, like in {0,0,0,1,1,...}, I guess that's easier to work with.)
Now I want to count how many sequences of two "1"s, three "1"s, etc there are (the zeros lengths are not important, they're just separators), to show them in a histogram. I have no problems doing this procedural, but functional programming remains difficult for me. While I don't mind pausing for a cup of coffee (there's 4.8 million data points), I guess in functional programming this will be orders of magnitude faster. How do I do this with functional programming?
Note
"0011100" only counts as a sequence of length 3, the two sub-sequences of length 2 should not be taken into account.

