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.