How many lines are in this log? How many words in this document? How many user accounts in this list? One small command answers all of these: wc — short for word count, though it counts lines and bytes too.
wc — lines, words, and bytes all at oncewc -l — just the line count (the one you'll use most)wc -w — just the word countwc -c — just the byte countIt becomes really powerful when you pipe other commands into it to count results. Your files live in projects: poem.txt and names.txt. Move into that folder first.