counts function

Report the distribution of values that follow occurrences of a sequence