An LLM itself can't use wc. Coding agents like Claude Code or Cursor will call out to command line tools for this kind of problem when the LLM detects it.
I don't understand why Gemini insists that it can count the lines itself, instead of falling back to its Python tool [1].
[1] https://github.com/elder-plinius/CL4R1T4S/blob/main/GOOGLE/G...