I have a row of data with 1's or 0's in adjacent cells - say 10 cells. No more than 2 1's can be beside each other (ie never 111 or 1111)

1011001101

I want to count the number of times there are 2 1's side by side and the number of times there is a single 1 on its own.

In the row above the answer for both would be 2.

I know this could be done by summing adjacent cells and using countif but I want to avoid using the countif formula.

thanks