By using the wc command. wc = print newline, word, and byte counts for each file
In the CLI type in the following command:
wc -wcl < /home/user/textfile.txt
textfile.txt = The file that we need to get the information from -w = print the word count -c = print the character count -l = print the line count