Excel is perfect for this task. Place your data in column A
In B1 enter:
=IF(A1=0,"",ROW())
and copy down. Column B identifies each success.
In C1 enter:
=IFERROR(SMALL(B:B,ROW()),"")
and copy down.
In D1 enter:
=C1-1
In D2 enter:
=IF(C2="","",C2-C1-1)
and copy down. Cols C & D are the results table. C gives the location of each success and D gives the number of intervening failures. For example: