The function constant {tt length} gives the number of items in a list.
(=> (Length ?List ?N) (= ?N (Cond ((Null ?List) 0) ((List ?List) (1+ (Length (Rest ?List)))))))