I have data sett like this, ordered by date and time:
DateTime Start Stopp
2020-09-29 13:00:00 NA NA
2020-09-29 13:10:00 NA NA
2020-09-29 13:20:00 1 NA
2020-09-29 13:30:00 NA NA
2020-09-29 13:40:00 NA NA
2020-09-29 13:50:00 NA 1
2020-09-29 14:00:00 NA NA
2020-09-29 14:10:00 1 NA
2020-09-29 14:20:00 NA NA
2020-09-29 14:30:00 NA NA
2020-09-29 14:40:00 NA 1
2020-09-29 14:20:00 NA NA
Is is possible make a new columns whit count of the rows, that start when start is equal to 1 and stop when stop is equal 1?