elemCount(L,N).
elemCount([],0).
elemCount([a],1).
elemCount([b,c],2).

elemCount([X],1).

