contar nuevas líneas bash

command | wc -l  
wc -l < some_file.txt
Outrageous Octopus