i have a list,
a , b , b , a , a , e , a
i want to get the individual counts of a value before a change in value.
if i use "count", it simply gives me a=4. another issue is that the value "a" appears again later in the list.
i want the output to be,