1 0 1 1 0 2 1 1 1 0

How do get it to count the number of occurences in row. As in each column represents a week, so in the above example, lets say we are in week 8, there would be two 1's in a row, so the result of the formula would give me something like "Two 1's in a row". There will only be 3 combinations (0,1,2).

Is this possible?