Count the atoms



Hi everyone, i'm new to prolog.
and I'm looking for a method to count the atoms in a list(include the
elements within any sublist).
thanks

.