For example:
count_blocks([[b,c,f],[a,d,g],[h,e]],C).
C=[3,3,2]
I know that I can find the length of a list with:
len([], LenResult):-
LenResult is 0.
len([X|Y], LenResult):-
len(Y, L),
LenResult is L + 1.
but not sure how to calculate list lengths within a list. The outer list length will always be 3 (with the possibility of empty inner lists).