wc is the Swiss Army knife for file statistics. Combine flags or chain with other commands.
$ wc -l file.txt # lines
wc -w file.txt # words
wc -c file.txt # bytes
# Count non-empty lines:
grep -c . file.txt
# Total lines across multiple files:
wc -l *.log | tail -1
Delete this trick? This cannot be undone.