I would like to count the number of the lines found between each two consecutive "*" characters including one of them. Input:
>*1
AA
BB
CC
>*2
RR
FGRE
>*3
A
output:
4 >*1
3 >*2
2 >*3
where the first field is the number of the lines between *'s and the second field is the string including them.