A literal is a variable either in normal or complemented form. So the number of literals in an expression will be the count of number of occurrences of variables and if that variable is repeated it will be counted more than once.
Also the expression should be in minimal form to count number of literals in it.